diff options
author | shivam kohli <kohlishivam5522@gmail.com> | 2018-07-05 04:43:22 +0530 |
---|---|---|
committer | shivam kohli <kohlishivam5522@gmail.com> | 2018-07-05 04:43:22 +0530 |
commit | 1cfc3be3bc7d089f2e01f6e4546476efd455f601 (patch) | |
tree | 5785e9ad96ccecfcc6a38983dee511ed6b791578 /inventory/models.py | |
parent | cd3fdd5d00fe2ce4b49a5cf3577fc7886e2fbf31 (diff) | |
download | codeless-1cfc3be3bc7d089f2e01f6e4546476efd455f601.tar.gz codeless-1cfc3be3bc7d089f2e01f6e4546476efd455f601.tar.bz2 codeless-1cfc3be3bc7d089f2e01f6e4546476efd455f601.zip |
added licence header and digital inventory
Diffstat (limited to 'inventory/models.py')
-rw-r--r-- | inventory/models.py | 20 |
1 files changed, 20 insertions, 0 deletions
diff --git a/inventory/models.py b/inventory/models.py index aa8b848..6319f10 100644 --- a/inventory/models.py +++ b/inventory/models.py @@ -1,6 +1,25 @@ #!/usr/bin/env python3 # -*- coding: utf-8 -*- +# This file is part of the Taler Codeless Merchant. +# (C) 2018 GNUnet e.V. +# +# The Taler Codeless Merchant is free software: you can redistribute it and/or +# modify it under the terms of the GNU Affero General Public License as published +# by the Free Software Foundation, either version 3 of the License, or (at your +# option) any later version. +# +# The Taler Codeless Merchant is distributed in the hope that it will be useful, +# but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY +# or FITNESS FOR A PARTICULAR PURPOSE. See the GNU Affero General Public License +# for more details. +# +# You should have received a copy of the GNU Affero General Public License along +# with the Taler Codeless Merchant. If not, see <https://www.gnu.org/licenses/>. +# +# @author Shivam Kohli + + from django.db import models from django.contrib.auth.models import User from django.db.models.signals import post_save @@ -35,6 +54,7 @@ class Product(models.Model): inventory_recieved = models.IntegerField(blank=True, null=True) inventory_shipped = models.IntegerField(blank=True, null=True) user = models.ForeignKey(User, on_delete=models.CASCADE, null=True) + document = models.FileField(upload_to='document/') def __str__(self): return self.name |