On Mon, 2006-06-26 at 00:58 +1000, Malcolm Tredinnick wrote:

> I've just checked in r3202 which I believe fixes the root cause of #1796
> in a reasonably correct way. I think it also fixes #2232 for the same
> reason. It all seems to come down to the import paths being used as
> dictionary keys and models being registered twice. See the change for
> the way I am working around this.
> 
> Russ: can you see if I've overlooked any problem there, please. It took
> a little while to track everything down and my brain may have gotten
> twisted in the process. Also, I left it alone for now and I realise you
> were just cutting-and-pasting, but __import__ takes dictionaries as the
> second and third arguments (globals() and locals(), basically, although
> the third arg is essentially ignored); why are we passing in strings???
> 
> I can no longer cause #1796 or anything like it to fail -- and I had a
> couple of failing examples there. I believe relative imports
> (appname.models, etc) might now work reliably too (experiments suggest
> they do), which means you no longer are reliant on your project name and
> can create portable apps.

By the way, I'm pretty sure there are (or should be) some "reverse
relation" bugs still present, for the same reasons as these two bugs.
They were there before and are no worse than previously. I just need to
trace through the reverse lookup stuff a bit more carefully. I'll fix
them in the morning, but my brain is fried right now and it's nap time.

Best wishes,
Malcolm


--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"Django developers" group.
To post to this group, send email to django-developers@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-developers
-~----------~----~----~----~------~----~------~--~---

Reply via email to