Skip to content

Commit a75a00e

Browse files
committed
Stay consistent: Use TYPE_CHOICES instead of TYPES
1 parent 29618a6 commit a75a00e

File tree

1 file changed

+3
-3
lines changed
  • feincms/content/medialibrary

1 file changed

+3
-3
lines changed

feincms/content/medialibrary/v2.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@ class MediaFileContent(ContentWithMediaFile):
2020
Create a media file content as follows::
2121
2222
from feincms.content.medialibrary.v2 import MediaFileContent
23-
Page.create_content_type(MediaFileContent, TYPES=(
23+
Page.create_content_type(MediaFileContent, TYPE_CHOICES=(
2424
('default', _('Default')),
2525
('lightbox', _('Lightbox')),
2626
('whatever', _('Whatever')),
@@ -45,9 +45,9 @@ class Meta:
4545
verbose_name_plural = _('media files')
4646

4747
@classmethod
48-
def initialize_type(cls, TYPES=None):
48+
def initialize_type(cls, TYPE_CHOICES=None):
4949
cls.add_to_class('type', models.CharField(_('type'),
50-
max_length=10, choices=TYPES, default=TYPES[0][0]))
50+
max_length=10, choices=TYPE_CHOICES, default=TYPE_CHOICES[0][0]))
5151

5252
def render(self, **kwargs):
5353
ctx = {'content': self}

0 commit comments

Comments
 (0)