X-Git-Url: https://git.mdrn.pl/redakcja.git/blobdiff_plain/4ac9918f152cc49badd4a359bfed41e723161cdf..46f96a4ae489ed958389c76caed52d991473e1f8:/apps/catalogue/models/chunk.py?ds=inline diff --git a/apps/catalogue/models/chunk.py b/apps/catalogue/models/chunk.py index 00e18d98..8b8f56b3 100755 --- a/apps/catalogue/models/chunk.py +++ b/apps/catalogue/models/chunk.py @@ -22,6 +22,7 @@ class Chunk(dvcs_models.Document): number = models.IntegerField(_('number')) slug = models.SlugField(_('slug')) title = models.CharField(_('title'), max_length=255, blank=True) + gallery_start = models.IntegerField(_('gallery start'), null=True, blank=True) # cache _short_html = models.TextField(null=True, blank=True, editable=False) @@ -62,7 +63,7 @@ class Chunk(dvcs_models.Document): # Creating and manipulation # ========================= - def split(self, slug, title='', adjust_slug=False, **kwargs): + def split(self, slug, title='', **kwargs): """ Create an empty chunk after this one """ self.book.chunk_set.filter(number__gt=self.number).update( number=models.F('number')+1)