Change order of inheritance to make purging work properly
authorMagnus Hagander <magnus@hagander.net>
Sun, 27 Nov 2011 11:27:17 +0000 (12:27 +0100)
committerMagnus Hagander <magnus@hagander.net>
Sun, 27 Nov 2011 11:27:17 +0000 (12:27 +0100)
pgweb/events/models.py
pgweb/quotes/models.py

index a3a356edb24ba6d6650451c2f79e486ee932e5e0..695bbe4ef5c63e6836c97025db3fa0a109862dc8 100644 (file)
@@ -5,7 +5,7 @@ from pgweb.util.bases import PgModel
 
 from core.models import Country, Organisation
 
-class Event(models.Model, PgModel):
+class Event(PgModel, models.Model):
        approved = models.BooleanField(null=False, blank=False, default=False)
 
        org = models.ForeignKey(Organisation, null=False, blank=False)
index 7bc1867c8a9720c70bd34975da3ce532ad6f2a37..296dde1322da84e48e9b8c85e424d2fe37342c01 100644 (file)
@@ -1,7 +1,7 @@
 from django.db import models
 from pgweb.util.bases import PgModel
 
-class Quote(models.Model, PgModel):
+class Quote(PgModel, models.Model):
        approved = models.BooleanField(null=False, default=False)
        quote = models.TextField(null=False, blank=False)
        who = models.CharField(max_length=100, null=False, blank=False)