summaryrefslogtreecommitdiff
path: root/django/db/models/fields/files.py
Commit message (Collapse)AuthorAgeFilesLines
...
* Fixed E128 flake8 warnings in django/.Tim Graham2016-04-081-2/+1
|
* Fixed W503 flake8 warnings.Tim Graham2016-04-041-2/+2
|
* Fixed #26398 -- Made FieldFile.open() respect its mode argument.Alexey Kotlyarov2016-03-231-4/+3
|
* Refs #26367 -- Removed obsolete _size cache on FieldField.Tim Graham2016-03-171-7/+0
| | | | The _size attribute is used in File.size but FieldFile overrides it.
* Removed unneeded hint=None/obj=None in system check messages.Tim Graham2016-02-121-2/+0
|
* Discouraged use of /tmp with predictable names.Chris Lamb2015-12-241-1/+1
| | | | | The use of predictable filenames in /tmp often leads to symlink attacks so remove the most obvious use of them in the docs.
* Fixed #25547 -- Made Model.refresh_from_db() update FileField's instance.Attila Tovt2015-12-051-0/+4
|
* Fixed #25611 -- Standardized descriptor signatures.Tim Graham2015-10-261-1/+1
|
* Fixed #21042 -- Allowed accessing FileDescriptor on the model class.Tim Graham2015-10-011-3/+1
| | | | | This is consistent with ability to reference other descriptors on the model class (5ef0c03ae9aca99289737ba6d88a371ad95cf432).
* Refs #9893 -- Removed shims for lack of max_length support in file storage ↵Tim Graham2015-09-231-15/+1
| | | | per deprecation timeline.
* Fixed #25331 -- Removed trailing blank lines in docstrings.Maxime Lorant2015-08-311-1/+0
|
* Renamed RemovedInDjangoXYWarnings for new roadmap.Tim Graham2015-06-241-3/+3
| | | | | Forwardport of ae1d663b7913f6da233c55409c4973248372d302 from stable/1.8.x plus more.
* Fixed #24979 -- Removed usage of inspect.getargspec().Tim Graham2015-06-151-3/+2
|
* Removed unnecessary arguments in .get method callsPiotr Jakimiak2015-05-131-1/+1
|
* Fixed #24105 -- Called Storage.get_valid_name() when upload_to is callableAbhaya Agarwal2015-05-121-2/+7
|
* Fixed typo in django/db/models/fields/files.py comment.Don Kirkby2015-02-201-1/+1
|
* Sorted imports with isort; refs #23860.Tim Graham2015-02-061-5/+5
|
* Fixed #9893 -- Allowed using a field's max_length in the Storage.Pavel Shpilev2015-01-121-1/+16
|
* Fixed #23684 -- Used correct package name for Pillow in Error hint.Nicholas Serra2014-10-191-1/+1
|
* Fixed #21940 -- Added kwargs to contribute_to_class() of model fields..Mitar2014-08-011-4/+4
| | | | Thanks Kronuz for the suggestion.
* Fix many many typos in comments throughout the codebaseAlex Gaynor2014-04-261-1/+1
|
* Removed PIL compatability layer per deprecation timeline.Tim Graham2014-03-211-3/+2
| | | | refs #19934.
* Fixed #22199: Bad max_length deconstruction for FileFieldAndrew Godwin2014-03-081-3/+1
|
* Edited model and field checks for grammar and consistency.Russell Keith-Magee2014-03-031-6/+6
|
* Removed an inactive system check for upload_to.Russell Keith-Magee2014-01-201-14/+0
| | | | Thanks to Simon Charette for the eagle eyes.
* Fixed #16905 -- Added extensible checks (nee validation) frameworkRussell Keith-Magee2014-01-201-3/+71
| | | | | | | | | This is the result of Christopher Medrela's 2013 Summer of Code project. Thanks also to Preston Holmes, Tim Graham, Anssi Kääriäinen, Florian Apolloner, and Alex Gaynor for review notes along the way. Also: Fixes #8579, fixes #3055, fixes #19844.
* Fixed assorted flake8 errors.Tim Graham2013-10-111-1/+4
|
* Fixed #21217 -- Avoid connecting `(pre|post)_init` signals to abstract senders.Simon Charette2013-10-041-1/+3
|
* Fixed #20348 -- Consistently handle Promise objects in model fields.Tai Lee2013-07-311-0/+1
| | | | | | | | | | | All Promise objects were passed to force_text() deep in ORM query code. Not only does this make it difficult or impossible for developers to prevent or alter this behaviour, but it is also wrong for non-text fields. This commit changes `Field.get_prep_value()` from a no-op to one that resolved Promise objects. All subclasses now call super() method first to ensure that they have a real value to work with.
* A large number of stylistic cleanups across django/db/Alex Gaynor2013-07-081-1/+6
|
* Fixed #20660 -- Do not try to delete an unset FieldFileClaude Paroz2013-06-291-0/+2
| | | | | Thanks stanislas.guerra at gmail.com for the report and Baptiste Mispelon for the review.
* Ported over Field.deconstruct() from my schema alteration branch.Andrew Godwin2013-06-281-0/+19
| | | | | This is to help other ongoing branches which would benefit from this functionality.
* Fixed #19634 -- Added proper __hash__ methods.Aymeric Augustin2013-02-251-1/+0
| | | | | | | Classes overriding __eq__ need a __hash__ such that equal objects have the same hash. Thanks akaariai for the report and regebro for the patch.
* Fixed #19525 -- Reverted dcd4383107 and 05d333ba3b.Aymeric Augustin2012-12-271-24/+0
| | | | | | Refs #9893, #18515. Thanks Russell for the report.
* Replaced some smart_xxx by force_xxx equivalentClaude Paroz2012-08-301-2/+2
| | | | | smart_str/smart_text should only be used when a potential lazy string should be preserved in the result of the function call.
* [py3] Fed strftime with unicode on Python 3Claude Paroz2012-08-141-2/+2
|
* [py3] Ported django.utils.encoding.Aymeric Augustin2012-08-071-2/+2
| | | | | | | | | | | * Renamed smart_unicode to smart_text (but kept the old name under Python 2 for backwards compatibility). * Renamed smart_str to smart_bytes. * Re-introduced smart_str as an alias for smart_text under Python 3 and smart_bytes under Python 2 (which is backwards compatible). Thus smart_str always returns a str objects. * Used the new smart_str in a few places where both Python 2 and 3 want a str.
* [py3] Replaced unicode/str by six.text_type/bytes.Aymeric Augustin2012-07-221-1/+1
|
* [py3] Replaced basestring by six.string_types.Aymeric Augustin2012-07-221-1/+2
|
* Fixed #18515 -- Conditionally regenerated filename in FileField validationClaude Paroz2012-06-261-1/+5
| | | | | When a FileField value has been saved, a new validation should not regenerate a new filename when checking the length. Refs #9893.
* Fixed #18269 -- Applied unicode_literals for Python 3 compatibility.Claude Paroz2012-06-071-1/+1
| | | | | Thanks Vinay Sajip for the support of his django3 branch and Jannis Leidel for the review.
* Fixed #9893 -- Validated the length of file namesAymeric Augustin2012-05-171-0/+21
| | | | | | | after the full file name is generated by the storage class. Thanks Refefer for the report, carsongee for the patch, and everyone else involved in the discussion.
* Fixed #17219 -- Updated model field descriptions to be more precise. Thanks, ↵Jannis Leidel2012-02-091-2/+2
| | | | | | charettes. git-svn-id: http://code.djangoproject.com/svn/django/trunk@17476 bcc190cf-cafb-0310-a4f2-bffc1f526a37
* Fix initialisation of ImageField super classes.Malcolm Tredinnick2011-08-231-2/+3
| | | | | | Fixes #16548, with thanks to pyriku. git-svn-id: http://code.djangoproject.com/svn/django/trunk@16658 bcc190cf-cafb-0310-a4f2-bffc1f526a37
* Fixed #16225 -- Removed unused imports. Many thanks to Aymeric Augustin for ↵Jannis Leidel2011-07-131-10/+7
| | | | | | the work on the patch and Alex for reviewing. git-svn-id: http://code.djangoproject.com/svn/django/trunk@16539 bcc190cf-cafb-0310-a4f2-bffc1f526a37
* Removed a bunch more Python 2.4 workarounds now that we don't support that ↵Adrian Holovaty2011-03-281-2/+0
| | | | | | version. Refs #15702 -- thanks to jonash for the patch. git-svn-id: http://code.djangoproject.com/svn/django/trunk@15927 bcc190cf-cafb-0310-a4f2-bffc1f526a37
* Fixed #6456 - Excised FileField file deletion to avoid data loss. Thanks to ↵Carl Meyer2011-01-261-13/+0
| | | | | | durdinator for the report. git-svn-id: http://code.djangoproject.com/svn/django/trunk@15321 bcc190cf-cafb-0310-a4f2-bffc1f526a37
* Fixed #12955 -- Use the size attribute of the file instead of len() to ↵Jannis Leidel2010-12-121-2/+2
| | | | | | support uploads larger than 2GB. Thanks, swiedenroth and isagalaev. git-svn-id: http://code.djangoproject.com/svn/django/trunk@14878 bcc190cf-cafb-0310-a4f2-bffc1f526a37
* Fixed #7048 -- Added ClearableFileInput widget to clear file fields. Thanks ↵Jannis Leidel2010-10-011-1/+9
| | | | | | for report and patch, jarrow and Carl Meyer. git-svn-id: http://code.djangoproject.com/svn/django/trunk@13968 bcc190cf-cafb-0310-a4f2-bffc1f526a37
* Fixed #1142 -- Added multiple database support.Russell Keith-Magee2009-12-221-3/+3
| | | | | | | | | | | | | | | | | This monster of a patch is the result of Alex Gaynor's 2009 Google Summer of Code project. Congratulations to Alex for a job well done. Big thanks also go to: * Justin Bronn for keeping GIS in line with the changes, * Karen Tracey and Jani Tiainen for their help testing Oracle support * Brett Hoerner, Jon Loyens, and Craig Kimmerer for their feedback. * Malcolm Treddinick for his guidance during the GSoC submission process. * Simon Willison for driving the original design process * Cal Henderson for complaining about ponies he wanted. ... and everyone else too numerous to mention that helped to bring this feature into fruition. git-svn-id: http://code.djangoproject.com/svn/django/trunk@11952 bcc190cf-cafb-0310-a4f2-bffc1f526a37