Re: getting information from a many to many model from user

2013-06-07 Thread tony gair
That would work nicely if I had done my own user management app but I lazily used Userena. I think I need to override a function of their profile form so it only displays fields if the superuser or a designated boolean in same said profile is set to true:) Do you know how I would over ride a cla

Re: getting information from a many to many model from user

2013-06-06 Thread Daniel Roseman
On Thursday, 6 June 2013 11:00:40 UTC+1, tony gair wrote: > > > > I use the Userena app to manage my users but I want the superuser to > choose the organisation for them so they cannot wonder around other > organisations information. > > I can either create a foreign key in their profile to poin

getting information from a many to many model from user

2013-06-06 Thread tony gair
I use the Userena app to manage my users but I want the superuser to choose the organisation for them so they cannot wonder around other organisations information. I can either create a foreign key in their profile to point to the organisation but then I expect they can change it, which woul

Re: Newbie question: many-to-many model creation

2010-12-10 Thread Marcos Moyano
http://www.djangoproject.com/documentation/models/many_to_many/ Rgds, Marcos On Fri, Dec 10, 2010 at 8:54 AM, girish shabadimath < girishmss.1...@gmail.com> wrote: > Thanks for the reply,, > Here are my models > > class Checkers(models.Model): >name = models.CharField(max_length = 100) >

Re: Newbie question: many-to-many model creation

2010-12-10 Thread girish shabadimath
Thanks for the reply,, Here are my models class Checkers(models.Model): name = models.CharField(max_length = 100) weight = models.FloatField(default = 0) desc = models.CharField(max_length = 1000) class PrepCheckers(models.Model): name = models.CharField(max_length = 150) ABCchecke

Re: Newbie question: many-to-many model creation

2010-12-10 Thread Kenneth Gonsalves
On Fri, 2010-12-10 at 16:55 +0530, girish shabadimath wrote: > im new to django > > im using django 1.2 > i have a model that has one many-to-many relationship field > > How to create a object of this model ? > > what to pass for the field that has many-to-many relationship? please give some d

Newbie question: many-to-many model creation

2010-12-10 Thread girish shabadimath
Hi all, im new to django im using django 1.2 i have a model that has one many-to-many relationship field How to create a object of this model ? what to pass for the field that has many-to-many relationship? -- Girish M S -- You received this message because you are subscribed to the Google G

Re: many to many model

2009-08-03 Thread Malcolm Tredinnick
On Mon, 2009-08-03 at 03:49 -0700, elminio wrote: > Hi, > tahnks for reply I added additional ManyToManyfield to one table and > admin panel looks ok but in fact even using syncdb new intermediate > table wasn't created. > Is there anything else I should do ? Syncdb does not incrementally update

Re: many to many model

2009-08-03 Thread elminio
Hi, tahnks for reply I added additional ManyToManyfield to one table and admin panel looks ok but in fact even using syncdb new intermediate table wasn't created. Is there anything else I should do ? --~--~-~--~~~---~--~~ You received this message because you are

Re: many to many model

2009-08-03 Thread Malcolm Tredinnick
On Mon, 2009-08-03 at 02:24 -0700, elminio wrote: > Hello, > > My problem is that I have (for example), a model teacher - subject > many to many. So that I made additional table named teacherSubject > with both ids. Instead of thinking about what database tables would be created, use Django's OR

many to many model

2009-08-03 Thread elminio
Hello, My problem is that I have (for example), a model teacher - subject many to many. So that I made additional table named teacherSubject with both ids. Now I would like to have an opportunity to add subjects to Teachers in admin panel but no by id of the subject but by name. Now according to