change path max_length to 255 for mysql compliance

This commit is contained in:
bkfox 2017-08-30 13:03:43 +02:00
parent 726ff50b7c
commit cf92f50fcd
2 changed files with 2 additions and 2 deletions

View File

@ -992,7 +992,7 @@ class Sound(Nameable):
recursive = True,
blank = True, null = True,
unique = True,
max_length = 256
max_length = 255
)
embed = models.TextField(
_('embed HTML code'),

View File

@ -916,7 +916,7 @@ class SectionList(BaseList, SectionRelativeItem):
context.update(SectionRelativeItem.get_context(self, request, page))
if self.url_text:
self.related = self.related.specific
self.related = self.related and self.related.specific
target = None
if self.related and hasattr(self.related, 'get_list_page'):
target = self.related.get_list_page()