Re: Django Database Relationship Question

2008-06-27 Thread bhunter
> And this is why the Django community rocks, two examples and a full > explaination with a link in less than 10 minutes, GW guys Absolutely! Thank you all so much! In just 15 minutes I had great answers from everyone. --~--~-~--~~~---~--~~ You received this

Re: Django Database Relationship Question

2008-06-26 Thread [EMAIL PROTECTED]
You may also be interested in this ticket: http://code.djangoproject.com/ticket/6095 (which will hopefully be hitting relatively soon). On Jun 26, 11:27 pm, Eric Abrahamsen <[EMAIL PROTECTED]> wrote: > You'd almost think they were handing out prizes for being quickest on   > the draw :) > > On

Re: Django Database Relationship Question

2008-06-26 Thread Eric Abrahamsen
You'd almost think they were handing out prizes for being quickest on the draw :) On Jun 27, 2008, at 12:18 PM, joshuajonah wrote: > > And this is why the Django community rocks, two examples and a full > explaination with a link in less than 10 minutes, GW guys > > On Jun 26, 11:55 pm,

Re: Django Database Relationship Question

2008-06-26 Thread joshuajonah
And this is why the Django community rocks, two examples and a full explaination with a link in less than 10 minutes, GW guys On Jun 26, 11:55 pm, bhunter <[EMAIL PROTECTED]> wrote: > Hi, sorry for what is probably a trivial question, but I'm new to > Django and a little fuzzy on databases in

Re: Django Database Relationship Question

2008-06-26 Thread Eric Abrahamsen
Hey there, A M2M field creates an intermediary join table which doesn't show up in the admin, or other places. It's basically just a pairing of Journalist ids with Article ids, and the M2M field is a convenience that allows you to ignore this table. If you want to add additional

Re: Django Database Relationship Question

2008-06-26 Thread Julien
Hi, To do that I would use an auxilliary model: class Journalist(models.Model): pass class Article(models.Model): pass class JournalistArticleRelationship(models.Model): journalist = models.ForeignKey(Journalist) article = models.ForeignKey(Article) status = models.Charfield()

Re: Django Database Relationship Question

2008-06-26 Thread joshuajonah
Well you'd want a relational table of author status', some thing like this: class Journalist(models.Model): name = models.Charfield() class Article(models.Model): articles = models.Charfield class State(models.Model): state = models.CharField() class Article_relationship(models.Model):

Django Database Relationship Question

2008-06-26 Thread bhunter
Hi, sorry for what is probably a trivial question, but I'm new to Django and a little fuzzy on databases in general, so I hope someone here can help. Just to keep the motif, I'll frame my question in terms of journalism. I'd like to set up a database with the following relationships: a model