From: Matthijs Kooijman Date: Mon, 21 Jan 2008 22:08:14 +0000 (+0100) Subject: * Remove ee.base.models.EEObject, Django does not support inheritance yet. X-Git-Url: https://git.stderr.nl/gitweb?a=commitdiff_plain;ds=sidebyside;h=d4a0f8d42a45478fd9e3d8e3e3078033a8a5410c;p=matthijs%2Fprojects%2Fxerxes.git * Remove ee.base.models.EEObject, Django does not support inheritance yet. --- diff --git a/base/models.py b/base/models.py index 1ba0cff..137941f 100644 --- a/base/models.py +++ b/base/models.py @@ -1,6 +1 @@ from django.db import models - -# Create your models here. -class EEObject(models.Model): - created = models.DateField(auto_now_add=1) - modified = models.DateField(auto_now=1) diff --git a/influences/models.py b/influences/models.py index d27e0e0..d5db8a3 100644 --- a/influences/models.py +++ b/influences/models.py @@ -1,8 +1,9 @@ from django.db import models -from ee.base.models import EEObject # Create your models here. -class Character(EEObject): +class Character(models.Model): + created = models.DateField(auto_now_add=1) + modified = models.DateField(auto_now=1) name = models.CharField(max_length=255) def __str__(self): return self.name @@ -10,7 +11,9 @@ class Character(EEObject): class Admin: pass -class Influence(EEObject): +class Influence(models.Model): + created = models.DateField(auto_now_add=1) + modified = models.DateField(auto_now=1) contact = models.CharField(max_length=255) character = models.ForeignKey(Character, edit_inline=models.TABULAR, num_in_admin=3, core=True) description = models.TextField()