Re: browser input and strings
Hi Shawn thanks for your reply.
I have some categories, with multiple items per category. If a user
enters http://mysite.com/items-from-100-to-1000 I want a short
description of all items in that category listed.
I have done this so far with:
{% for x in browse_lijst %}
{% ifequal x.lijst.__str__ browse.__str__ %}
{{x.titel}}
etc. etc.
This works with Django 1.0 but gives problems when i try to upgrade.
Here is the model:
class Nl(models.Model):
publiceren = models.BooleanField()
titel = models.CharField(max_length=60)
tekst = models.TextField()
prijs = models.CharField(max_length=12)
slug = models.SlugField(max_length=60)
kort = models.TextField()
thumb = models.ImageField(upload_to='verkoop/thumb/%Y/%m/%d',
default='verkoop/thumb/geen_afbeelding.jpg', blank=True)
remove_thumb = models.BooleanField()
plaatje1 = models.ImageField(upload_to='verkoop/%Y/%m/%d',
blank=True)
remove_plaatje1 = models.BooleanField()
etc.etc.
Please let me know if you need more info
--
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.
0 Comments:
Post a Comment
Subscribe to Post Comments [Atom]
<< Home