> This works but looks really ugly...
Agreed.
Is there some reason you can't use class Admin in your models?
More than one person has observed that Django's auto-generated admin
interface is its Killer App. It's integrated with the
django.contrib.auth authentication app, and it's even customizable to
a fairly great extent -- look, ordering, extended functionality, etc.,
etc.
In case you missed this little nugget, see
http://www.djangoproject.com/documentation/model-api/#admin-options
There's an entire chapter on it in the Django Book:
http://www.djangobook.com/en/1.0/chapter06/
And here's a slide show to walk you through setup and use:
http://www.slideshare.net/mcantelon/basic-crud-in-django/
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups
"Django users" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at
http://groups.google.com/group/django-users?hl=en
-~----------~----~----~----~------~----~------~--~---