Django

Code

Show
Ignore:
Timestamp:
06/12/08 15:13:27 (7 months ago)
Author:
brosner
Message:

newforms-admin: Fixed #5731 -- Implemented ModelAdmin?.radio_fields to match trunk's radio_admin. Removed legacy code and added tests. Thanks Karen Tracey for the initial work.

Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • django/branches/newforms-admin/django/contrib/redirects/models.py

    r5828 r7626  
    44 
    55class Redirect(models.Model): 
    6     site = models.ForeignKey(Site, radio_admin=models.VERTICAL
     6    site = models.ForeignKey(Site
    77    old_path = models.CharField(_('redirect from'), max_length=200, db_index=True, 
    88        help_text=_("This should be an absolute path, excluding the domain name. Example: '/events/search/'.")) 
     
    2929    list_filter = ('site',) 
    3030    search_fields = ('old_path', 'new_path') 
     31    radio_fields = {'site': admin.VERTICAL} 
    3132 
    3233admin.site.register(Redirect, RedirectAdmin)