Re: ManyToManyField is this right?

2012-06-27 Thread David Wagner
Thanks Tom. Is this the example your talking about, https://docs.djangoproject.com/en/1.4/topics/db/models/#intermediary-manytomany? If so, I think this should work... # Different groups and states that issue teaching certificates/licenses class IssuingAuthority(models.Model): name =

Re: ManyToManyField is this right?

2012-06-27 Thread Thomas Lockhart
On 6/27/12 11:48 AM, David Wagner wrote: Looking at that I think I may need to add a foreignkey to cert_types relating to person since a person can have multiple certification types (NRA Instructor, CCL Instructor, etc). No. See below. On Wed, Jun 27, 2012 at 11:40 AM, David Wagner

Re: ManyToManyField is this right?

2012-06-27 Thread David Wagner
Ah, I think that makes sense. Sorry if I wasn't clear earlier on but yes, I am looking for instructors who are certified to teach a certain course. So basically a user could sign up and select some or none of the types of courses they are certified to teach this way other users who want to learn

Re: ManyToManyField is this right?

2012-06-27 Thread David Wagner
Looking at that I think I may need to add a foreignkey to cert_types relating to person since a person can have multiple certification types (NRA Instructor, CCL Instructor, etc). On Wed, Jun 27, 2012 at 11:40 AM, David Wagner wrote: > i think I may just be over thinking

Re: ManyToManyField is this right?

2012-06-27 Thread David Wagner
i think I may just be over thinking this. The last time I did any significant coding for the web as pre-php5 and so this whole MVC thing is something to adapt too for sure. I think I need to start thinking of the Model in the same way I would design a database back in the day with phpMyAdmin. I

Re: ManyToManyField is this right?

2012-06-27 Thread Thomas Lockhart
On 12-06-27 8:02 AM, David Wagner wrote: Thanks for all the replies and I think I'm getting it now but it gets more complex too. So NRA Licenses is essentialy going to become a type of several certifications. For instance. NRA Instructor * Home Firearm Safety Instructor * Refuse to be

Re: ManyToManyField is this right?

2012-06-27 Thread David Wagner
Thanks for all the replies and I think I'm getting it now but it gets more complex too. So NRA Licenses is essentialy going to become a type of several certifications. For instance. NRA Instructor - Home Firearm Safety Instructor - Refuse to be a Victim Workshop - and many more could

Re: ManyToManyField is this right?

2012-06-27 Thread j_syk
One to One is the right type for linking a user to a profile in the Django world. However I think you may be mixed up on the many to many. How you have it setup would lead to a User being connected to multiple License objects, each with a nra and ccl attribute. If I didn't realize what those

Re: ManyToManyField is this right?

2012-06-27 Thread Thomas Lockhart
On 12-06-27 6:57 AM, David Wagner wrote: I'm a self taught programmer who hasn't done much of anything for years so please forgive me if this question is naive. I have a hard time sometimes understanding some of the lingo used by trained programmers. With that said, I'm having trouble

Re: ManyToManyField is this right?

2012-06-27 Thread Javier Guerra Giraldez
On Wed, Jun 27, 2012 at 8:57 AM, David Wagner wrote: > With that said, I'm having trouble wrapping my brain around the ManyToMany > and Many-To-One and OneToOne concepts. I'm trying to create a multi-select > option for a user profile in which a user can have multiple

ManyToManyField is this right?

2012-06-27 Thread David Wagner
I'm a self taught programmer who hasn't done much of anything for years so please forgive me if this question is naive. I have a hard time sometimes understanding some of the lingo used by trained programmers. With that said, I'm having trouble wrapping my brain around the ManyToMany and