Changeset 54 for plesonet_banners/trunk/models.py
- Timestamp:
- 07/06/09 19:05:42 (3 years ago)
- Files:
-
- 1 modified
-
plesonet_banners/trunk/models.py (modified) (2 diffs)
Legend:
- Unmodified
- Added
- Removed
-
plesonet_banners/trunk/models.py
r42 r54 4 4 from django.contrib import admin 5 5 from django.core.cache import cache 6 from django.conf import settings 6 7 7 8 BANNERS_CACHE_KEY = "all_menu_items" … … 63 64 64 65 bannerplace = models.ForeignKey(Bannerpage)#, edit_inline=models.TABULAR, min_num_in_admin=BANNERS, max_num_in_admin=BANNERS) 65 bannertype = models.SmallIntegerField(_('Banner place'), choices= BANNER_TYPE)66 bannertype = models.SmallIntegerField(_('Banner place'), choices=settings.BANNER_TYPE) 66 67 bannercode = models.TextField(_('Code'), blank=True)#, core=True) 67 68 is_published = models.BooleanField(_('Published'))#, core=True)

