fix error with CampRelatedModel
This commit is contained in:
parent
f7b1f040bb
commit
656536974b
|
@ -3,7 +3,7 @@ from utils.models import CreatedUpdatedModel, CampRelatedModel
|
|||
from django.core.exceptions import ValidationError
|
||||
|
||||
|
||||
class InfoCategory(CreatedUpdatedModel, CampRelatedModel):
|
||||
class InfoCategory(CampRelatedModel):
|
||||
class Meta:
|
||||
ordering = ['weight', 'headline']
|
||||
unique_together = (('anchor', 'camp'), ('headline', 'camp'))
|
||||
|
@ -38,7 +38,7 @@ class InfoCategory(CreatedUpdatedModel, CampRelatedModel):
|
|||
return '%s (%s)' % (self.headline, self.camp)
|
||||
|
||||
|
||||
class InfoItem(CreatedUpdatedModel, CampRelatedModel):
|
||||
class InfoItem(CampRelatedModel):
|
||||
class Meta:
|
||||
ordering = ['weight', 'headline']
|
||||
unique_together = (('anchor', 'category'), ('headline', 'category'))
|
||||
|
|
|
@ -39,7 +39,7 @@ class UserSubmittedModel(CampRelatedModel):
|
|||
)
|
||||
|
||||
|
||||
class EventLocation(CreatedUpdatedModel, CampRelatedModel):
|
||||
class EventLocation(CampRelatedModel):
|
||||
""" The places where stuff happens """
|
||||
name = models.CharField(max_length=100)
|
||||
slug = models.SlugField()
|
||||
|
@ -106,7 +106,7 @@ class Event(UserSubmittedModel):
|
|||
return reverse_lazy('event_detail', kwargs={'camp_slug': self.camp.slug, 'slug': self.slug})
|
||||
|
||||
|
||||
class EventInstance(CreatedUpdatedModel, CampRelatedModel):
|
||||
class EventInstance(CampRelatedModel):
|
||||
""" An instance of an event """
|
||||
event = models.ForeignKey('program.event', related_name='instances')
|
||||
when = DateTimeRangeField()
|
||||
|
|
|
@ -47,7 +47,7 @@ class CreatedUpdatedModel(CleanedModel):
|
|||
updated = models.DateTimeField(auto_now=True)
|
||||
|
||||
|
||||
class CampRelatedModel(CleanedModel):
|
||||
class CampRelatedModel(CreatedUpdatedModel):
|
||||
class Meta:
|
||||
abstract = True
|
||||
|
||||
|
|
|
@ -5,7 +5,7 @@ from utils.models import CreatedUpdatedModel, UUIDModel, CampRelatedModel
|
|||
from .managers import VillageQuerySet
|
||||
|
||||
|
||||
class Village(CreatedUpdatedModel, UUIDModel, CampRelatedModel):
|
||||
class Village(UUIDModel, CampRelatedModel):
|
||||
|
||||
class Meta:
|
||||
ordering = ['name']
|
||||
|
|
Loading…
Reference in a new issue