| Commit message (Collapse) | Author | Age | Files | Lines |
|
|
|
| |
prefetch_related().
|
|
|
|
|
|
|
|
|
| |
Python 2.
Reverted "Fixes #24727 -- Prevented ClearableFileInput from masking
exceptions on Python 2" and added a regression test.
This reverts commit 5c412dd8a724b263489c1bd7a2fea381460665d7.
|
| |
|
|
|
|
|
|
| |
ValidationError raised when constructing the model instance.
Thanks Loïc Bistuer for review and advice.
|
|
|
|
| |
when saving invalid form with UUIDField pk.
|
|
|
|
| |
on_delete for ForeignKey/OneToOneField
|
| |
|
|
|
|
|
|
|
| |
validation.
`','`, `'1,,1'`, `',1'` etc. are no longer considered as valid
comma-separated integer lists.
|
|
|
|
| |
Fixes commit 8714403614.
|
|
|
|
| |
Thanks Carsten Fuchs for the report.
|
|
|
|
|
|
|
| |
Dropped the DJANGO_TEST_TEMP_DIR environment variable.
Before this change, proper removal depended on the developer passing
dir=os.environ['DJANGO_TEST_TMP_DIR'] to tempfile functions.
|
|
|
|
|
|
| |
field classes.
Thanks Carl Meyer and Markus Holtermann for the reviews.
|
| |
|
| |
|
|
|
|
|
|
| |
This is a security fix. Disclosure following shortly.
Thanks Keryn Knight for the report and initial patch.
|
|
|
|
| |
imports to range
|
|
|
|
|
|
|
| |
field in Model.clean()
Also added a unit test wit the simpler syntax which we have documented,
where the dictionary values are strings.
|
| |
|
|
|
|
|
|
|
|
|
| |
Custom form fields having a `queryset` attribute but no
`limit_choices_to` could no longer be used in ModelForms.
Refs #2445.
Thanks to artscoop for the report.
|
| |
|
|
|
|
| |
Django test suite.
|
|
|
|
|
|
| |
ModelChoiceField's queryset when accesssing BoundField's attrs.
Thanks Christian Schmitt for review.
|
|
|
|
|
|
| |
more robust to invalid data types..
Thanks Mattias Lindvall for the report and inital patch.
|
| |
|
|
|
|
|
|
| |
with non-nullable FK and blank=True.
Thanks peterbe for the report.
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
Refs #8620.
If we allow any value to remove form fields then we get name clashes
with method names, media classes etc. There was a backwards
incompatibility introduced meaning ModelForm subclasses with declared
fields called media or clean would lose those fields.
Field removal is now only permitted by using the sentinel value None.
The docs have been slightly reworded to refer to removal of fields
rather than shadowing.
Thanks to gcbirzan for the report and initial patch, and several of the
core team for opinions.
|
|
|
|
|
| |
Oracle and SQL Server don't have exactly the same limitations. It's
worth treating them differently.
|
| |
|
| |
|
|
|
|
|
|
|
|
| |
of fields is not specified.
Also applies to modelform(set)_factory and generic model views.
refs #19733.
|
|
|
|
|
|
| |
use a SelectMultiple widget
Per deprecation timeline; refs #9321.
|
|
|
|
| |
refs #19934.
|
|
|
|
| |
snuck in
|
| |
|
| |
|
|
|
|
|
|
|
| |
to-be-removed-in-django-XX warnings
Thanks Anssi Kääriäinen for the idea and Simon Charette for the
review.
|
|
|
|
| |
forms.CharField.maxlength
|
| |
|
|
|
|
|
|
|
|
|
| |
a callable.
ForeignKey or ManyToManyField attribute ``limit_choices_to`` can now
be a callable that returns either a ``Q`` object or a dict.
Thanks michael at actrix.gen.nz for the original suggestion.
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
customizable.
Overriding the error messages now works for both unique fields, unique_together
and unique_for_date.
This patch changed the overriding logic to allow customizing NON_FIELD_ERRORS
since previously only fields' errors were customizable.
Refs #20199.
Thanks leahculver for the suggestion.
|
| |
|
|
|
|
| |
Pillow and PIL in model_fields and model_forms tests.
|
|\
| |
| | |
Cleanup/pep8 tests
|
| |\
| | |
| | |
| | | |
Signed-off-by: Jason Myers <jason@jasonamyers.com>
|
| | |
| | |
| | |
| | | |
Signed-off-by: Jason Myers <jason@jasonamyers.com>
|
| | |
| | |
| | |
| | | |
Signed-off-by: Jason Myers <jason@jasonamyers.com>
|
| | | |
|
| |/
|/|
| |
| |
| | |
Depending on the order of the tests beeing run, 10 can be a valid pk,
0 can never be a valid pk and as such we will get the wanted ValidationError.
|
| |
| |
| |
| |
| |
| |
| |
| |
| |
| | |
prefetch_related.
model_to_dict() (used when rendering forms) queries the database
to get the list of primary keys for ManyToMany fields. This is
unnecessary if the field queryset has been prefetched, all the
keys are already in memory and can be obtained with a simple
iteration.
|
|/ |
|