1. Davor Lucic
  2. django-imagekit

Commits

Justin Driscoll  committed f3bcb08

Fixed changed var name

Comments (0)

Files changed (1)

File src/imagekit/models.py Modified

View file
  • Ignore whitespace
  • Hide word diff
                 prop._create()
 
     def save(self, clear_cache=True, *args, **kwargs):
-        is_new = self._get_pk_val is None
+        is_new_object = self._get_pk_val is None
         super(IKModel, self).save(*args, **kwargs)
-        if is_new:
+        if is_new_object:
             clear_cache = False
             spec = self._ik.preprocessor_spec
             if spec is not None: