diff options
author | luxagraf@c63593aa-01b0-44d9-8516-4b9c7e931d7f <luxagraf@c63593aa-01b0-44d9-8516-4b9c7e931d7f> | 2009-04-29 02:51:27 +0000 |
---|---|---|
committer | luxagraf@c63593aa-01b0-44d9-8516-4b9c7e931d7f <luxagraf@c63593aa-01b0-44d9-8516-4b9c7e931d7f> | 2009-04-29 02:51:27 +0000 |
commit | 7f7aab987b75fd89c8696621fc8b7e2f081a0e28 (patch) | |
tree | d0acb946f4da6368acd4248c4d6715bd950247ff /apps/blog | |
parent | 3694604330e53dbf447ec495f20083288f8e0195 (diff) |
added metadata field to blog model
Diffstat (limited to 'apps/blog')
-rw-r--r-- | apps/blog/admin.py | 2 | ||||
-rw-r--r-- | apps/blog/models.py | 1 |
2 files changed, 2 insertions, 1 deletions
diff --git a/apps/blog/admin.py b/apps/blog/admin.py index 37aab8d..d641b5b 100644 --- a/apps/blog/admin.py +++ b/apps/blog/admin.py @@ -23,7 +23,7 @@ class EntryAdmin(OSMGeoAdmin): list_filter = ('pub_date', 'enable_comments', 'status','region','location') fieldsets = ( ('Entry', {'fields': ('title','body_markdown', ('location','region'), 'pub_date', ('status','enable_comments'), 'tags', 'slug'), 'classes': ('show','extrapretty','wide')}), - ('Pub Location', {'fields': ('point',('thumbnail',),'dek'), 'classes': ('collapse', 'wide')}), + ('Pub Location', {'fields': ('point',('thumbnail',),'dek', 'title_keywords'), 'classes': ('collapse', 'wide')}), ) extra_js = [GMAP.api_url + GMAP.key] map_template = 'gis/admin/google.html' diff --git a/apps/blog/models.py b/apps/blog/models.py index f354bab..5093f5b 100644 --- a/apps/blog/models.py +++ b/apps/blog/models.py @@ -54,6 +54,7 @@ class Entry(models.Model): status = models.IntegerField(choices=PUB_STATUS, default=0) photo_gallery = models.ForeignKey(PhotoGallery, blank=True, null=True, verbose_name='photo set') thumbnail = models.FileField(upload_to=get_upload_path, null=True,blank=True) + title_keywords = models.CharField(max_length=200) class Meta: ordering = ('-pub_date',) |