Ajout du listing et création d'inventaires

This commit is contained in:
Aurélien Delobelle 2016-08-27 14:12:01 +02:00
parent cd436faf9b
commit ffa73c41c3
7 changed files with 203 additions and 5 deletions

View file

@ -356,6 +356,9 @@ class Inventory(models.Model):
related_name = "inventory",
blank = True, null = True, default = None)
class Meta:
ordering = ['-at']
class InventoryArticle(models.Model):
inventory = models.ForeignKey(
Inventory, on_delete = models.PROTECT)