Skip to content
This repository

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse code

Fixed #1964 -- Fixed bug in fetching the dimensions of an ImageField.…

… Thanks, Armin Ronacher

git-svn-id: http://code.djangoproject.com/svn/django/trunk@3168 bcc190cf-cafb-0310-a4f2-bffc1f526a37
  • Loading branch information...
commit f2aab5b913adf65728ded560e217acea3ae2d1f9 1 parent b2e5c4e
Adrian Holovaty authored June 20, 2006

Showing 1 changed file with 2 additions and 2 deletions. Show diff stats Hide diff stats

  1. 4  django/db/models/base.py
4  django/db/models/base.py
@@ -196,7 +196,7 @@ def save(self):
196 196
             else:
197 197
                 # Create a new record with defaults for everything.
198 198
                 cursor.execute("INSERT INTO %s (%s) VALUES (%s)" %
199  
-                    (backend.quote_name(self._meta.db_table), 
  199
+                    (backend.quote_name(self._meta.db_table),
200 200
                      backend.quote_name(self._meta.pk.column),
201 201
                      backend.get_pk_default_value()))
202 202
             if self._meta.has_auto_field and not pk_set:
@@ -363,7 +363,7 @@ def _get_image_dimensions(self, field):
363 363
         cachename = "__%s_dimensions_cache" % field.name
364 364
         if not hasattr(self, cachename):
365 365
             from django.utils.images import get_image_dimensions
366  
-            filename = self._get_FIELD_filename(field)()
  366
+            filename = self._get_FIELD_filename(field)
367 367
             setattr(self, cachename, get_image_dimensions(filename))
368 368
         return getattr(self, cachename)
369 369
 

0 notes on commit f2aab5b

Please sign in to comment.
Something went wrong with that request. Please try again.