On 9/21/05, Rachel Willmer <[EMAIL PROTECTED]> wrote:
> class State(meta.Model):
>         state=meta.CharField(maxlength=128)
>         def __repr__(self):
>                 return self.state
>
> class Asset(meta.Model):
>         definition=meta.ForeignKey(AssetDefinition)
>         state=meta.ForeignKey(AssetState,null=True,blank=True)
>         def __repr__(self):
>                 return self.get_definition().__repr__()
> [...]
> The second compained that it couldn't recognise assetstates.

There doesn't appear to be an AssetState model. Should that
"ForeignKey(AssetState)" be "ForeignKey(State)"?

Adrian

--
Adrian Holovaty
holovaty.com | djangoproject.com | chicagocrime.org

Reply via email to