Thanks to everyone for your help and support!

As it turns our, Malcoms advice of:

>Then start removing code from your models until things start working again.

...was what I needed.  It gave me a chance to wade through the models
and find the offending code.

Looks like it was line 84 of the origional code ->
http://paste.e-scribe.com/2407/
professor = models.ForeignKey(User,choices = [(user.id,
user.get_full_name() or user.username) for user in
User.objects.filter(groups__name__iexact="Faculty").filter(is_active__iexact="1")],
related_name="professor", verbose_name="Faculty" )

I changed this to something that was already working elsewhere:
professor = models.ForeignKey('UserProfile', related_name="professor",
limit_choices_to={'user__is_active__iexact' : '1' ,
'user__groups__name__iexact' : 'Faculty'}, verbose_name="Professor")

I also changed a few field names in the Story model and model names
elsewhere.  The working (right now, anyway) models.py can be found at
http://paste.e-scribe.com/2429/

Thanks!  jd


--~--~---------~--~----~------------~-------~--~----~
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
-~----------~----~----~----~------~----~------~--~---

Reply via email to