Simplify Django organization, add South support.

This commit is contained in:
Michael DeHaan
2013-02-28 19:39:01 -05:00
parent 17bfe1b2e1
commit d444bd0873
62 changed files with 258 additions and 308 deletions

21
acom/main/models.py Normal file
View File

@@ -0,0 +1,21 @@
from django.db import models
class CommonModel(models.Model):
''' common model for all object types that have these standard fields '''
class Meta:
abstract = True
name = models.TextField()
description = models.TextField()
creation_date = models.DateField()
db_table = 'inventories'
class Inventory(CommonModel):
class Meta:
db_table = 'inventory'
id = models.AutoField(primary_key=True)