On Thursday 16 October 2008 15:09:51 Sahasranaman wrote:
> Hello guys,
>
> I need to create a model like this:
>
> class team(SQLObject):
> name = UnicodeCol(length = 30)
> score = IntCol()
> playingagainst = ForeignKey('team')
>
>
> Can I do this? Can I create a field in an sql model which is a foreign
> key to the model containing it?
As we say in germany: "Versuch macht klug."
Or in english: "try out & be enlightened."
Then you'd have found out that it works.
Diez
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups
"TurboGears" 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/turbogears?hl=en
-~----------~----~----~----~------~----~------~--~---