Re: Django Model design: OOP or Database-centric approach?

2008-10-23 Thread dustpuppy
Thanks Kip. I appreciate the suggestions. Kind regards, Cormac. On Oct 23, 4:29 pm, Kip Parker <[EMAIL PROTECTED]> wrote: > Neither seem right to me. I'm not quite sure what the application > does, but it seems likely that a person only belongs to one family, in > which case you'll need a

Re: Django Model design: OOP or Database-centric approach?

2008-10-23 Thread Kip Parker
Neither seem right to me. I'm not quite sure what the application does, but it seems likely that a person only belongs to one family, in which case you'll need a foreign key like this. class Adult(models.Model): name = models.CharField(maxlength=30) partner =

Django Model design: OOP or Database-centric approach?

2008-10-23 Thread dustpuppy
Hi, I'm starting off with Django and trying my first (toy) project. It's a Kris Kindle application (called "Secret Santa"? by some). Not exactly earth-shattering, but I want to start with something small. I'm unsure what approach to use when designing my model. The entities I am dealing with