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)
   ABCcheckers = models.ManyToManyField(Checkers,
      related_name = 'prevent45checkers')

now how to create PrepCheckers obj  ?



On Fri, Dec 10, 2010 at 5:15 PM, Kenneth Gonsalves <law...@au-kbc.org>wrote:

> 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 details of your models
> --
> regards
> Kenneth Gonsalves
>
> --
> You received this message because you are subscribed to the Google Groups
> "Django users" group.
> To post to this group, send email to django-us...@googlegroups.com.
> To unsubscribe from this group, send email to
> django-users+unsubscr...@googlegroups.com<django-users%2bunsubscr...@googlegroups.com>
> .
> For more options, visit this group at
> http://groups.google.com/group/django-users?hl=en.
>
>


-- 
Girish M S

-- 
You received this message because you are subscribed to the Google Groups 
"Django users" group.
To post to this group, send email to django-us...@googlegroups.com.
To unsubscribe from this group, send email to 
django-users+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/django-users?hl=en.

Reply via email to