Hi Josh,
> What I'm trying to do is re-order the apps and models as they appear
> on the admin index, so if there's some other way to do this that I'm
> not aware of I'd be just as happy.
You can extend django.contrib.admin.sites.AdminSite with your own
custom class. Then, extend the method AdminSite.index() replacing the
couple of lines there that explicitly sort the apps and models
alphabetically with your own sort key.
>
> Also, is there a way to change the widget for checkboxes so that the
> label is on the left and the checkbox on the right like all the other
> widgets, or would I have to just write a custom widget?
1. Create a copy of the template django/contrib/admin/templates/admin/
includes/fieldset.html
2. Place it in your project's template dir root at the relative path:
admin/includes/fieldset.html. Customize the following fragment to your
liking:
{% if field.is_checkbox %}
{{ field.field }}{{ field.label_tag }}
{% else %}
3. Make sure that your template loader settings lists your custom
template dir root first.
Cheers,
-Rajesh D
--~--~---------~--~----~------------~-------~--~----~
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
-~----------~----~----~----~------~----~------~--~---