Changes between Version 3 and Version 4 of CustomImageField
- Timestamp:
- Mar 18, 2010, 11:40:52 PM (15 years ago)
Legend:
- Unmodified
- Added
- Removed
- Modified
-
CustomImageField
v3 v4 18 18 """ 19 19 def __init__(self, *args, **kwargs): 20 if not 'upload_to'in kwargs:20 if 'upload_to' not in kwargs: 21 21 kwargs['upload_to'] = 'tmp' 22 22 self.use_key = kwargs.get('use_key', False) 23 23 if 'use_key' in kwargs: 24 del (kwargs['use_key'])24 del kwargs['use_key'] 25 25 super(CustomImageField, self).__init__(*args, **kwargs) 26 26