* Remove ee.base.models.EEObject, Django does not support inheritance yet.
authorMatthijs Kooijman <matthijs@stdin.nl>
Mon, 21 Jan 2008 22:08:14 +0000 (23:08 +0100)
committerMatthijs Kooijman <matthijs@stdin.nl>
Mon, 21 Jan 2008 22:08:14 +0000 (23:08 +0100)
base/models.py
influences/models.py

index 1ba0cff42eda9d7fd5c93f4642654dde08c59f03..137941ffaef5f37858adc11dbf608734c570dd38 100644 (file)
@@ -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)
index d27e0e0aae73d58e5f452556206b1ecdcaeac1ff..d5db8a39b5cfc598f65df9d1f7e939f9aa54fc38 100644 (file)
@@ -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()