Wednesday, August 1, 2012

Re: Working with a Custom, Dynamic Form (using BaseForm)

Here are my models, if you are interested:

    class Photographer(models.Model):
        name = models.CharField(max_length=20)
        models = models.ManyToManyField('Model')

    class Model(models.Model):
        model = models.CharField(max_length=20, blank=False)
        series = models.ForeignKey('Series', null=True, blank=True)

    class A(models.Model):
        user = models.ForeignKey(User)
        photographer = models.ForeignKey('Photographer', blank=True, null=True)
        model = models.ForeignKey('Model', blank=True, null=True)



Thanks folks

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

No comments:

Post a Comment