Re: Problem with Form with ForeignKey field

2014-01-16 Thread Tom Evans
On Wed, Jan 15, 2014 at 8:44 PM, Jonathan Pentecost wrote: > Does it have anything to do with the related name of animal being `+`? I > can't test this out just yet, but I don't THINK you can have a related_name > as just `+`, I believe it needs to be a valid

Re: Problem with Form with ForeignKey field

2014-01-15 Thread Jonathan Pentecost
Does it have anything to do with the related name of animal being `+`? I can't test this out just yet, but I don't THINK you can have a related_name as just `+`, I believe it needs to be a valid identifier. On Wednesday, 15 January 2014 03:26:12 UTC+11, Drew Ferguson wrote: > > Hi > > Django

Problem with Form with ForeignKey field

2014-01-14 Thread Drew Ferguson
Hi Django 1.5 I have a model which includes a ForeignKey field defined likes this class Document(models.Model): name = models.CharField(max_length=25, unique=True, null=False,blank=False) target = models.CharField(max_length=12, choices=TARGETS,default='report') content