Django magic removeral DON'T support models in multiple files.

3 views
Skip to first unread message

favo

unread,
May 31, 2006, 5:51:26 AM5/31/06
to Django developers
I hope someone can see the post because I don't want to repeat it.
http://groups.google.com/group/django-users/browse_thread/thread/cb3d55413a92151a

I think is easy to fix. anywhere we have the function in 0.91.
Thanks.

Michael Radziej

unread,
May 31, 2006, 6:23:14 AM5/31/06
to django-d...@googlegroups.com

I don't have a fix, but the patch in ticket 1821 might give you a
work-around to set the app-label properly.

Michael

favo

unread,
May 31, 2006, 7:08:17 AM5/31/06
to Django developers
Thanks a lot ,I have follow the patch
put my appsname int hte Meta. it works.
Thanks. Michael!!

Luke Plant

unread,
May 31, 2006, 9:44:38 AM5/31/06
to Django developers

Just to note: you do not need the patch for this to work i.e. if you
can put app_label as a Meta option. The patch enables you to have a
single module level attribute to do the same thing.

Luke

favo

unread,
May 31, 2006, 9:11:14 PM5/31/06
to Django developers
That's right. I just put app_label as a Meta option.
and I hope one day we don't need to set this app_label manaully if
somebody refator the code in ModelBase.__new__ to let our models
app_label set automatically.

Thanks for all your help. :-)

Reply all
Reply to author
Forward
0 new messages