On Nov 17, 2:01 pm, Ben Gerdemann <[EMAIL PROTECTED]> wrote:
> Ok, so I just noticed that the a55_id field which is the primary key,
> was declared as an IntegerField instead of an AutoField which is why
> it was showing up on the inline form, but I still can't get any of the
> other fields excluded from the inline form so the problem is still
> there.
>
> Also, if it helps for understanding Pais = Parents and Visitas =
> Visits in Portuguese.
>
> Thanks again for any and all help.
>
> Cheers,
> Ben

The only thing I can see in your code that might cause problems is the
value for exclude:
exclude = ('a55_id')
This is not what you think it is. It's not a single-element tuple. It
is actually a single string, which will be treated as if it were a
list of characters ie ['a', '5', '5', '_', 'i', 'd']. Naturally, the
admin doesn't recognise this as a field, so won't exclude it.

I think what you meant was
exclude = ('a55_id',)
- note the extra comma, which is how you define a single-element
tuple.

There's no reason you can't have custom forms in an inline formset - I
do this all the time, using very similar code to the above.
--
DR.
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"Django users" group.
To post to this group, send email to django-users@googlegroups.com
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
-~----------~----~----~----~------~----~------~--~---

Reply via email to