Monday, September 27, 2010

Re: possible bug in models using db_column

Hi tom,

There are no reason why your code should work.

>>> shrubentry = shrub(uid_string_id = rootentry.uid_string)
>>> treeentry = tree(uid_string = rootentry.uid_string)
I hardly see why you are using uid_string_id on the first while using uid_string (without the _id) on the second.
If you remove the _id then you'll have to pass a rootentry instead of a string.
So this should be:

>>> treeentry = tree(uid_string_id = rootentry.uid_string) 

Regards,
Xavier.

Le 27 sept. 2010 à 18:21, tom@eyesonic.net a écrit :

Today, I stumbled over an at first sight strange behaviour using
models (db). It looks like a bug. I posted the code on stackoverflow:

http://stackoverflow.com/questions/3805752/possible-bug-in-django-models

greetings,
tom

No comments:

Post a Comment