Changeset 54 for plesonet_banners

Show
Ignore:
Timestamp:
07/06/09 19:05:42 (3 years ago)
Author:
nazar
Message:
 
Files:
1 modified

Legend:

Unmodified
Added
Removed
  • plesonet_banners/trunk/models.py

    r42 r54  
    44from django.contrib import admin 
    55from django.core.cache import cache 
     6from django.conf import settings 
    67 
    78BANNERS_CACHE_KEY = "all_menu_items" 
     
    6364     
    6465    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) 
    6667    bannercode = models.TextField(_('Code'), blank=True)#, core=True) 
    6768    is_published = models.BooleanField(_('Published'))#, core=True)