Re: Errors in model validation

2006-09-25 Thread [EMAIL PROTECTED]

You can disregard this thread.

This was a problem of circular references that i fixed over the weekend
(before the message was moderated) by passing the ForeignKey the string
of the Model name instead of the object (as per Django documentation!)

Also please disregard other messages like these (same content. similar
subject) as i had a problem with the Google Groups spamfilter that was
blocking me and attempted to send the same message from other email
addresses.

I apologize for the mess.

Lorenzo


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



Errors in model validation

2006-09-25 Thread Lorenzo Bolognini

Hi all,

I have a problem with the app below (SVN repo with read access) and i
tried everything to fix it. Probably u guys can help. It seems to me
some problem with namespace import, particularly the *order* in which
the names are imported.

The code in the repo is already broken but u can "fix it" by commenting
the parts that import or use the Department model (though that's not
what i want).

And this is just the minimum to repro the problem... it actually gets
worse when i try to add more models (probably i'm just repeating the
same mistake).

What looks especially funny to me is that "liger.people: cannot import
name Person" since the Person model is defined inside liger.people.

Source code here:
http://lorenzo.textdriven.com/svn/svn.djangoliger

C:\www\liger>python manage.py validate
liger.courses: cannot import name Major
liger.people: cannot import name Person
liger.time: cannot import name Person
liger.departments: cannot import name Department
4 errors found.

Thanks,
Lorenzo


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