Thank you :) That was the only thing I didn't try :)
It works flawlessly :)
On Dec 20, 8:39 pm, rebus_ wrote:
> {% for a in p.gallery.all %}
> <--- TRY THIS
> {% endfor %}
>
> http://docs.djangoproject.com/en/dev/ref/files/file/#django.core.file...
--
You received this message because y
{% for a in p.gallery.all %}
<--- TRY THIS
{% endfor %}
http://docs.djangoproject.com/en/dev/ref/files/file/#django.core.files.File.url
--
You received this message because you are subscribed to the Google Groups
"Django users" group.
To post to this group, send email to django-us...@go
MODEL:
class PropertyGallery(models.Model):
link = models.ImageField(upload_to="gallery/props/")
class Property(models.Model):
name = models.CharField(max_length=200)
gallery=models.ManyToManyField(PropertyGallery)
---
3 matches
Mail list logo