On 12/12/05, Robert Wittams <[EMAIL PROTECTED]> wrote:
> class Reporter(meta.Model):
>    articles = meta.Collection('Article','reporter')
>
> class Articles(meta.Model):
>    reporter = meta.ForeignKey(Article)

This gets a huge -1 from me. Only one end of the relationship should
need to be defined; otherwise, it's a significant violation of DRY.

Adrian

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

Reply via email to