Let me ask you one more? ..Need to do some extra functioalities like
the effects of Uploading file in gmail like that in django? any
suggestions?
On Sep 26, 7:14 pm, Philip Mountifield <pmountifi...@formac.net>
wrote:
> I would put the images in a seperate model such as "ReportImage" and
> make a foreign key to "Report", and finally I'd use the "inlines" admin
> feature for ReportImages to display them on the same page as the report.
>
> Phil
>
> On 26/09/2011 15:02, NavaTux wrote:
>
>
>
>
>
>
>
>
>
> > Hi all,
>
> > I have a filed(ImageField) in my model.Also I want to have
> > multiple ImageFields.How to have more than one ImageFields only in
> > django model.Is there any need to derive that ImageField as a seperate
> > new model which holds as a foreign key of another one?
>
> > This is my model:
>
> > class Report(models.Model):
> > name = models.CharField(max_length=1024)
> > data = models.TextField()
> > image = models.ImageField(upload_to=settings.IMAGE_UPLOAD_PATH,
> > blank=True, null=True)
>
> > I need to display atleast 4 imagefields for this model object?
>
> --
>
> Philip Mountifield
> Formac Electronics Ltd
> tel +44 (0) 1225 837333
> fax +44 (0) 1225 430995
>
> pmountifi...@formac.netwww.formac.netwww.telgas.net
--
You received this message because you are subscribed to the Google Groups "Django users" group.
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