Ticket #10002: 10002.diff
File 10002.diff, 593 bytes (added by , 16 years ago) |
---|
-
django/forms/forms.py
371 371 if callable(data): 372 372 data = data() 373 373 else: 374 data = self.data 374 if isinstance(self.field, FileField) and self.data is None: 375 data = self.form.initial.get(self.name, self.field.initial) 376 else: 377 data = self.data 375 378 if not only_initial: 376 379 name = self.html_name 377 380 else: