Ticket #9067: 9067.diff

File 9067.diff, 685 bytes (added by Rob Hudson <treborhudson@…>, 16 years ago)
  • docs/ref/contrib/admin.txt

     
    5050        pass
    5151    admin.site.register(Author, AuthorAdmin)
    5252
     53Since the ``AuthorAdmin`` class is not customizing any of the ``ModelAdmin``
     54options as decribed below, it inherits all the defaults.  If the defaults are
     55good enough, there is a shortened version that accomplishes the same thing::
     56
     57    from django.contrib import admin
     58    from myproject.myapp.models import Author
     59
     60    admin.site.register(Author)
     61
    5362``ModelAdmin`` Options
    5463----------------------
    5564
Back to Top