Saturday, March 29, 2014

ManytoManyField refuses to show up when I syncdb

when I syncdb and use south schemamigration, I still can't get the ManyToManyField to show up.
what am I doing wrong. Any parameters I can pass to make it work?

Thank you guys


class Products(models.Model):

    #product_id = models.AutoField(primary_key=True)
    hs_number = models.CharField(primary_key=True, max_length=6)
    product_description = models.ManyToManyField(Countries, through='Imports')

--
You received this message because you are subscribed to the Google Groups "Django users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to django-users+unsubscribe@googlegroups.com.
To post to this group, send email to django-users@googlegroups.com.
Visit this group at http://groups.google.com/group/django-users.
To view this discussion on the web visit https://groups.google.com/d/msgid/django-users/e38457f8-0910-4de6-9039-ccf7915656a5%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

No comments:

Post a Comment