Changes between Version 21 and Version 22 of DjangoCheatSheet


Ignore:
Timestamp:
11/29/2010 08:33:29 AM (5 years ago)
Author:
sgriffee
Comment:

Added note about enabling Ticket creation in admin interface

Legend:

Unmodified
Added
Removed
Modified
  • DjangoCheatSheet

    v21 v22  
    7878}}}
    7979
     80...and tell the admin that Ticket objects have an admin interface. To do this, create a file called admin.py in your invoices directory, and edit it to look like this:
     81{{{
     82from invoices.models import Ticket
     83from django.contrib import admin
     84
     85admin.site.register(Ticket)
     86}}}
     87
    8088== Design your urls ==
    8189
Back to Top