From d4a0f8d42a45478fd9e3d8e3e3078033a8a5410c Mon Sep 17 00:00:00 2001 From: Matthijs Kooijman Date: Mon, 21 Jan 2008 23:08:14 +0100 Subject: [PATCH] * Remove ee.base.models.EEObject, Django does not support inheritance yet. --- base/models.py | 5 ----- influences/models.py | 9 ++++++--- 2 files changed, 6 insertions(+), 8 deletions(-) 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() -- 2.30.2