Cleaned up errors
This commit is contained in:
parent
7e9fdbf3b7
commit
c0bff596db
@ -14,7 +14,7 @@ def name_season_artwork(inst, name):
|
|||||||
show_static_storage = FileSystemStorage(location=os.path.join(os.path.dirname(settings.MEDIA_ROOT), 'uploaded_resources'), base_url='showstatic')
|
show_static_storage = FileSystemStorage(location=os.path.join(os.path.dirname(settings.MEDIA_ROOT), 'uploaded_resources'), base_url='showstatic')
|
||||||
|
|
||||||
# Create your models here.
|
# Create your models here.
|
||||||
class TimestampedModel:
|
class TimestampedModel(models.Model):
|
||||||
timestamp = models.DateTimeField(
|
timestamp = models.DateTimeField(
|
||||||
auto_now=True,
|
auto_now=True,
|
||||||
help_text='The date and time this object was created'
|
help_text='The date and time this object was created'
|
||||||
@ -89,6 +89,7 @@ class User(TimestampedModel):
|
|||||||
'Episode',
|
'Episode',
|
||||||
related_name='watched_by',
|
related_name='watched_by',
|
||||||
through='Watch'
|
through='Watch'
|
||||||
|
)
|
||||||
|
|
||||||
class Admin(User):
|
class Admin(User):
|
||||||
pass
|
pass
|
||||||
@ -333,7 +334,7 @@ class DiscussionBoard(TimestampedModel):
|
|||||||
help_text='The title of the discussion'
|
help_text='The title of the discussion'
|
||||||
)
|
)
|
||||||
body = models.TextField(
|
body = models.TextField(
|
||||||
help_text='The body of the post'
|
help_text='The body of the post',
|
||||||
verbose_name='Body'
|
verbose_name='Body'
|
||||||
)
|
)
|
||||||
|
|
||||||
@ -352,7 +353,7 @@ class DiscussionReply(TimestampedModel):
|
|||||||
help_text='The user that posted this reply'
|
help_text='The user that posted this reply'
|
||||||
)
|
)
|
||||||
body = models.TextField(
|
body = models.TextField(
|
||||||
help_text='The body of the response'
|
help_text='The body of the response',
|
||||||
verbose_name='Body'
|
verbose_name='Body'
|
||||||
)
|
)
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user