how do i create a query on the size of an image?

for example:
class Image(models.Model):

    image = models.ImageField(upload_to=upload_to('images'), db_index=True)


if i try something like:

    for image in Image.objects.filter(image__height_field__gte=100):
          # do something

i get the following error:

django.core.exceptions.FieldError: Join on field 'image' not permitted.


am i just missing something?

thanks.

--~--~---------~--~----~------------~-------~--~----~
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+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/django-users?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to