Ticket #1964: patch-django-db-models-dimensions-get_FIELD_filename

File patch-django-db-models-dimensions-get_FIELD_filename, 592 bytes (added by anonymous, 13 years ago)
Line 
1--- /usr/src/Django-trunk/django/db/models/base.py.orig 2006-05-23 01:10:50.000000000 +0200
2+++ /usr/src/Django-trunk/django/db/models/base.py      2006-05-23 01:11:03.000000000 +0200
3@@ -350,7 +350,7 @@
4         cachename = "__%s_dimensions_cache" % field.name
5         if not hasattr(self, cachename):
6             from django.utils.images import get_image_dimensions
7-            filename = self._get_FIELD_filename(field)()
8+            filename = self._get_FIELD_filename(field)
9             setattr(self, cachename, get_image_dimensions(filename))
10         return getattr(self, cachename)
11 
Back to Top