Hi,

On Wed, 18 Mar 2009 11:09 pm, welyou wrote:
>
> yes.
>
> addition question, if i have
> class CustomCategory(Category):
>       code = models.CharField(_("Code"), max_length=20)
>
> and i save two instance CustomCategory category:
> (1)Parent
>   (2)Child
>
> then i get by id instance of second "(2)Child"  - child_cat
>
> child_cat.parent - returns CustomCategory instance? (without my
> "code") it's right?
>
> How i can get "code" of "parent" from child instance?
>
Did you define a __unicode__() method on CustomCategory class?

lzantal

Laszlo Antal
http://twitter.com/lzantal

--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"Satchmo users" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to 
[email protected]
For more options, visit this group at 
http://groups.google.com/group/satchmo-users?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to