Ignore:
Timestamp:
17/03/11 00:17:18 (2 years ago)
Author:
Diego Mascialino <dmascialino@…>
Branch:
default
Message:

Updated feeds with some preferences in the SiteSettings?. *almost working*

File:
1 edited

Legend:

Unmodified
Added
Removed
  • cyclope/forms.py

    r326 r359  
    165165        required=True) 
    166166 
     167    def __init__(self, *args, **kwargs): 
     168        super(SiteSettingsAdminForm, self).__init__(*args, **kwargs) 
     169        self.fields['rss_content_types'].choices = site.get_base_ctype_choices() 
     170 
     171        #TODO(diegoM): I don't like this... 
     172        if ('', '------') in self.fields['rss_content_types'].choices: 
     173            self.fields['rss_content_types'].choices.remove(('', '------')) 
     174 
    167175    class Meta: 
    168176        model = SiteSettings 
Note: See TracChangeset for help on using the changeset viewer.