On Tue, Oct 13, 2009 at 10:43 PM, fsaintma
<frederic.saintmar...@gmail.com> wrote:
>
> hello
>
> I have a model.py like this :
>
> class secondaryGroup(models.Model):
>   id = models.AutoField(primary_key = True)
>   idGroup = models.ForeignKey(Group,db_column =
> 'idGroup',verbose_name = 'Groupe',limit_choices_to = Q(state='valid')
> | Q(state='modify'))
>   idUser = models.ForeignKey(User,db_column = 'idUser',verbose_name =
> 'Utilisateur',limit_choices_to = Q(state='valid') | Q(state='modify'))
>
> and in admin.py :
>
> class SecondaryGroupAdmin(admin.ModelAdmin):
>   form = SecondaryGroupAdminForm
>   list_display = ('idUser','idGroup')
>   raw_id_fields = ('idUser','idGroup',)
>
> and I obtain this error in Admin edit form :
>
> Caught an exception while rendering: 'Q' object has no attribute
> 'items'

I presume you are the "anonymous" who opened ticket #12024. You may
have noticed that this ticket has been reopened - Karen Tracey pointed
me at some documentation that points out that I was mistaken in saying
this was user error. It appears that you have found a bug. Apologies
for the confusion.

Yours,
Russ Magee %-)

--~--~---------~--~----~------------~-------~--~----~
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 
django-users+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/django-users?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to