UGHHH!  I feel like an idiot.  I actually had simply misplaced a comma
on the first attribute that came from inheritance, so I thought that
when it couldn't find the inherited field but it could find the
others, that it was an inheritance problem.  Seems to be working now.
I had to step away from the monitor to see it.



On Jun 9, 1:08 pm, Streamweaver <streamwea...@gmail.com> wrote:
> I caught the OR lookups documentation and this seems to work.
>
> u = User.objects.filter(project__owner__isnull=False).distinct() |
> User.objects.filter(release__owner__isnull=False).distinct()
>
> On Jun 9, 2:02 pm, mw <mwolff...@gmail.com> wrote:
>
> > Hello,
>
> > I have a class full of common information such as email, name, and
> > etc, that multiple other models inherit.  Everything works fine except
> > for the customizing of the admin interface.  For example, in a setup
> > such as:
>
> > class CommonStuff(models.Model):
> >    email = models.EmailField(...)
>
> > class Person(CommonStuff):
> >    otherattribute = ...
> >    somemore = ...
>
> > The admin interface raises an exception:
> >  .fieldsets[1][1]['fields']' refers to field 'email,' that is missing
> > from the form.
>
> > So admin.py isn't quite properly detecting that the model has
> > inherited the email attribute.  I imagine I'm just not registering
> > something correctly.  Any ideas?
>
> > Thanks in advance,
--~--~---------~--~----~------------~-------~--~----~
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