Skip to content


Subversion checkout URL

You can clone with
Download ZIP
Browse files

ok, fine, store the values in the database. see if i care.

  • Loading branch information...
commit 0d1fd43d33a75a61f536c156fd6c9e695645a733 1 parent 2b3a365
@mattdennewitz mattdennewitz authored
Showing with 10 additions and 4 deletions.
  1. +10 −4 undermythumb/
14 undermythumb/
@@ -208,11 +208,17 @@ def __init__(self, fallback_path, *args, **kwargs):
self.fallback_path = fallback_path
def get_db_prep_value(self, value, connection, prepared=False):
- if (not value or
- (not isinstance(value, (ImageFieldFile, ThumbnailFieldFile))) or
- prepared or
- (value.field != self or (hasattr(value, '_empty') and value._empty))):
+ if not value:
return None
+ if hasattr(value, 'field'):
+ if (value.field != self or (hasattr(value, '_empty') and value._empty)):
+ return None
+ if not isinstance(value, (ImageFieldFile, ThumbnailFieldFile, basestring)):
+ return None
return unicode(value)
def south_field_triple(self):
Please sign in to comment.
Something went wrong with that request. Please try again.