File tree Expand file tree Collapse file tree 1 file changed +3
-3
lines changed
feincms/content/medialibrary Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Original file line number Diff line number Diff 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 }
You can’t perform that action at this time.
0 commit comments