friends: reorder fields at admin to make process
authorYury Yurevich <the.pythy@gmail.com>
Fri Apr 10 01:05:49 2009 +0700 (2 weeks ago)
changeset 1400c57aa412859d
parent 139927ce755b3d76
child 1401af14c5e3801a
child 14023d37c0ccfd44
friends: reorder fields at admin to make process
of adding blogroll links more smooth
apps/friends/admin.py
       1 --- a/apps/friends/admin.py	Thu Apr 09 23:57:39 2009 +0700
       2 +++ b/apps/friends/admin.py	Fri Apr 10 01:05:49 2009 +0700
       3 @@ -10,17 +10,16 @@
       4      search_fields = ('name', 'feed', 'link')
       5      exclude = ('etag', 'bad_dates', 'bad_tags', 'target', )
       6      fieldsets = (
       7 -        (None, {'fields': ('name', 'slug', 'link', 'feed')}),
       8 +        (None, {'fields': ('link', 'name', 'slug', 'feed')}),
       9          (_('Extra'), {'classes': ('collapse',), 
      10                        'fields': ('active', 'weight',)}),
      11          (_('Multiuser/multisite support'), {'classes': ('collapse',),
      12 -                                            'fields': ('author', 'site',)}),        
      13 +                                            'fields': ('author', 'site',)}),
      14          (_('Relations'), {'classes': ('collapse',),
      15 -                          'fields': ('friendship_rel', 'physical_rel', 
      16 -                                     'professional_rel', 'geographical_rel', 
      17 +                          'fields': ('friendship_rel', 'physical_rel',
      18 +                                     'professional_rel', 'geographical_rel',
      19                                       'family_rel', 'romantic_rel',
      20                                       'identity_rel')}),
      21 -                                     
      22      )
      23  
      24  admin.site.register(FriendBlog, FriendBlogAdmin)