Re: Problem with ImageField and inline admin form

2008-09-03 Thread Ramin Miraftabi
The problem with this issue finally had nothing to do with the forms themselves, but the __unicode__ method of the Image-model. Older implementations of ImageField had a __unicode__ method of their own so def __unicode__(self): return self.file worked fine. Now this needs to be def __unicode

Re: Problem with ImageField and inline admin form

2008-09-02 Thread Aaron
Hi, I have similar models and wanted to do the same thing. Here's how I got my inline to work (using your provided models as an example). class Entry(models.Model): pub_date = models.DateTimeField('date published') created = models.DateTimeField(auto_now_add=True, editable=False) ed

Problem with ImageField and inline admin form

2008-08-29 Thread Ramin Miraftabi
Hi. I'm stumped and can't figure out a solution for the following: With the models: class Entry(models.Model): pub_date = models.DateTimeField('date published') created = models.DateTimeField(auto_now_add=True, editable=False) edited = models.DateTimeField(auto_now=True, editable=Fal