- title = models.CharField(_('title'), max_length=32767)
- slug = models.SlugField(_('slug'), max_length=120, db_index=True, unique=True)
- sort_key = models.CharField(_('sort key'), max_length=120, db_index=True, editable=False)
- sort_key_author = models.CharField(_('sort key by author'), max_length=120, db_index=True, editable=False, default=u'')
- created_at = models.DateTimeField(_('creation date'), auto_now_add=True, db_index=True)
- changed_at = models.DateTimeField(_('creation date'), auto_now=True, db_index=True)
- xml_file = models.FileField('xml_file', upload_to="xml", storage=picture_storage)
- image_file = ImageField(_('image_file'), upload_to="images", storage=picture_storage)
- html_file = models.FileField('html_file', upload_to="html", storage=picture_storage)
- areas_json = jsonfield.JSONField(_('picture areas JSON'), default={}, editable=False)
- extra_info = jsonfield.JSONField(_('extra information'), default={})
- culturepl_link = models.CharField(blank=True, max_length=240)
- wiki_link = models.CharField(blank=True, max_length=240)
-
- width = models.IntegerField(null=True)
- height = models.IntegerField(null=True)
-
- objects = models.Manager()
- tagged = managers.ModelTaggedItemManager(catalogue.models.Tag)
- tags = managers.TagDescriptor(catalogue.models.Tag)
+ title = models.CharField('tytuł', max_length=32767)
+ slug = models.SlugField('slug', max_length=120, db_index=True, unique=True)
+ sort_key = models.CharField('klucz sortowania', max_length=120, db_index=True, editable=False)
+ sort_key_author = models.CharField(
+ 'klucz sortowania wg autora', max_length=120, db_index=True, editable=False, default='')
+ created_at = models.DateTimeField('data utworzenia', auto_now_add=True, db_index=True)
+ changed_at = models.DateTimeField('data zmiany', auto_now=True, db_index=True)
+ xml_file = models.FileField('plik xml', upload_to="xml", storage=picture_storage)
+ image_file = ImageField('plik obrazu', upload_to="images", storage=picture_storage)
+ html_file = models.FileField('plik html', upload_to="html", storage=picture_storage)
+ areas_json = models.TextField('obszary w JSON', default='{}', editable=False)
+ extra_info = models.TextField('dodatkowa informacja', default='{}')
+ culturepl_link = models.CharField(blank=True, max_length=240)
+ wiki_link = models.CharField(blank=True, max_length=240)
+
+ width = models.IntegerField(null=True)
+ height = models.IntegerField(null=True)
+
+ objects = models.Manager()
+ tagged = managers.ModelTaggedItemManager(catalogue.models.Tag)
+ tags = managers.TagDescriptor(catalogue.models.Tag)