Changes between Version 3 and Version 4 of CustomImageField


Ignore:
Timestamp:
Mar 18, 2010, 11:40:52 PM (15 years ago)
Author:
newacct
Comment:

--

Legend:

Unmodified
Added
Removed
Modified
  • CustomImageField

    v3 v4  
    1818    """
    1919    def __init__(self, *args, **kwargs):
    20         if not 'upload_to' in kwargs:
     20        if 'upload_to' not in kwargs:
    2121            kwargs['upload_to'] = 'tmp'
    2222        self.use_key = kwargs.get('use_key', False)
    2323        if 'use_key' in kwargs:
    24             del(kwargs['use_key'])
     24            del kwargs['use_key']
    2525        super(CustomImageField, self).__init__(*args, **kwargs)
    2626
Back to Top