Django

Code

Show
Ignore:
Timestamp:
07/18/08 15:23:02 (6 months ago)
Author:
brosner
Message:

newforms-admin: Moved contrib ModelAdmin? classes to an admin.py file in their respective apps. This is allowed since [7872].

Files:

Legend:

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

    r7730 r7953  
    5050        except KeyError: 
    5151            pass 
    52      
    53 # Register the admin options for these models. 
    54 # TODO: Maybe this should live in a separate module admin.py, but how would we 
    55 # ensure that module was loaded? 
    56  
    57 from django.contrib import admin 
    58  
    59 class SiteAdmin(admin.ModelAdmin): 
    60     list_display = ('domain', 'name') 
    61     search_fields = ('domain', 'name') 
    62  
    63 admin.site.register(Site, SiteAdmin) 
    6452 
    6553class RequestSite(object):