Changes between Version 7 and Version 8 of CustomUploadAndFilters
- Timestamp:
- Aug 10, 2007, 8:42:01 AM (17 years ago)
Legend:
- Unmodified
- Added
- Removed
- Modified
-
CustomUploadAndFilters
v7 v8 12 12 13 13 There are similar approaches by [http://www.verdjn.com/ VERDJN]. 14 15 Update: added support for verbose name. 14 16 15 17 == Custom upload fields == … … 126 128 """ 127 129 128 def __init__(self, **kwargs):130 def __init__(self, verbose=None, **kwargs): 129 131 # Adjust the upload_to parameter 130 132 kwargs = init_path(self, **kwargs) 131 133 132 super(AutoFileField, self).__init__( **kwargs)134 super(AutoFileField, self).__init__(verbose, **kwargs) 133 135 # def __init__ 134 136 … … 163 165 """ 164 166 165 def __init__(self, max_width=None, max_height=None, crop=False, **kwargs):167 def __init__(self, verbose=None, max_width=None, max_height=None, crop=False, **kwargs): 166 168 # Adjust the upload_to parameter 167 169 kwargs = init_path(self, **kwargs) … … 173 175 self.width_field, self.height_field = 'width', 'height' 174 176 175 super(AutoImageField, self).__init__( **kwargs)177 super(AutoImageField, self).__init__(verbose, **kwargs) 176 178 # def __init__ 177 179