Commits

Thiago Rodrigues  committed a238d7c

added image

  • Participants
  • Parent commits bfea97d

Comments (0)

Files changed (4)

File diario/admin.py

                      'enable_comments')
     list_filter   = ('is_draft', 'publish_on', 'enable_comments', 'pub_date',
                      'markup')
+    list_editable = ('is_draft',)
     prepopulated_fields = {'slug': ('title',)}
     radio_fields = {'markup': admin.VERTICAL}
     search_fields = ['title', 'slug', 'body', 'author__username',

File diario/models.py

     )
     enable_comments = models.BooleanField(_('enable comments'), default=True)
 
+    main_image = models.ImageField(u'imagem destaque', upload_to="blog",
+                    null=True, blank=True, help_text=u'JPG: px x px')
+    thumb_image = models.ImageField(u'imagem destaque', upload_to="blog",
+                    null=True, blank=True, help_text=u'JPG: 280px x 150px')
+
     if HAS_TAG_SUPPORT:
         tags = TagField(blank=True)
 

File diario/urls/entries.py

     name   = 'diario-entry'
 )
 
-
 archive_day = url(
     regex  = '^(?P<year>\d{4})/(?P<month>[0-9]{2})/(?P<day>\d{2})/$',
     view   = views.EntryArchiveDay.as_view(),

File requirements.txt

+django-tagging>=0.3
+docutils
+python-markdown
+texile