Snippet 5: Using fieldsets to customize admin page

We can use fieldsets to make admin page more organized:

1. In admin.py, under your class’s admin, create the fieldsets:
Screen Shot 2013-02-16 at 11.39.00 PM

Notice the brackets used in {  ‘fields’:[( A , B ), C , D]   }  This allows attributes grouped by () to be displayed within the same line:
Screen Shot 2013-02-16 at 11.42.40 PM

Here’s django’s documentation on fieldset

 

Advertisements
This entry was posted in Snippets. Bookmark the permalink.

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out /  Change )

Google+ photo

You are commenting using your Google+ account. Log Out /  Change )

Twitter picture

You are commenting using your Twitter account. Log Out /  Change )

Facebook photo

You are commenting using your Facebook account. Log Out /  Change )

Connecting to %s