> The javascript will be found somewhere under django/contrib/admin/media/js.
To be clear, rc, although the javascript is of course available for
viewing, you should only need to put that attribute
"filter_horizontal" on your ModelAdmin. There shouldn't be any need
for inserting any custom javascript commands anywhere. That one
attribute does it all.
And... this might pose a problem, but I don't see any ManyToManyFields
in your models. It won't work unless you're using those, instead of
ForeignKeys.
For the extra mile, you shouldn't need those various "xxxx_id =
models.AutoField(primary_key=True)" parts. Django does that
automatically, but names each one just "id", instead of "[modelname]
_id". Unless you specifically want them to be named differently than
"id", you don't have to specify it, which helps it be more readable.
But it's of course your own project :) Do it however you wish!
Tim
On Nov 24, 6:01 pm, Karen Tracey <
kmtra...@gmail.com> wrote:
> On Tue, Nov 24, 2009 at 12:32 PM, rc <
reedcr...@gmail.com> wrote:
> > As I mentioned, the Django admin has exactly what I want with the user
> > permission form (auth_user, auth_permissions and
> > auth_user_user_permission). Does anyone know where that code is
> > located in the Django environment?
>
> That's done with javascript, activated by listing the fields in:
>
>
http://docs.djangoproject.com/en/dev/ref/contrib/admin/#django.contri...