| Age | Commit message (Collapse) | Author |
|
values.
Thanks danielsamuels for the report
|
|
Thanks David Fischer for the report and Moayad Mardini for the
review.
|
|
|
|
|
|
Thanks Daniel Pope for the suggestion.
|
|
Removed the FieldError raised by ModelBase.__new__ in this case.
|
|
choices"
This reverts commit 9d1987d7679165ad3a7c2b713a8a488cc1421905.
|
|
refs #19195.
|
|
Thanks to Trac alias tbartelmess for the report and the test project.
|
|
#18586.
|
|
Fixed #20550 -- Added ability to preserve test db between runs
|
|
This reverts commit cb9c9a7b5879671053c7d2ad6e79943a8814b274.
|
|
|
|
Thanks apollo13 for the review.
|
|
|
|
Fixed #22682 -- `makemigrations` will create `MIGRATION_MODULES` package
|
|
`makemigrations` will automatically create the package specified
in `MIGRATION_MODULES` if it doesn't already exist.
Thanks ovidiuc4 for the report.
|
|
|
|
Thanks Simon Charette and Tim Graham for the reviews.
|
|
This attribute (used for reverse dependencies) was previously declared
and mentioned in the code, but never actually used.
|
|
|
|
|
|
Fixed #22720 -- Migrations attempt to create _order twice.
|
|
|
|
|
|
`django.forms.extras.widets.SelectDateWidget`
Thanks danielsamuels for the report
|
|
|
|
This makes it possible to run django.setup() in management commands that
don't need a settings module. In addition it simplifies error handling.
Thanks Claude for the review.
|
|
`makemigrations --dry-run` will output the complete migrations file
that would be written if it's used along with `--verbosity 3`.
|
|
|
|
|
|
|
|
Also removed unused import in runtests.py.
|
|
|
|
Made the fix in InteractiveMigrationQuestioner class code, rather than
MigrationAutodetector, because --dry-run shouldn't affect whether
MigrationAutodetector will detect non-nullable fields, but the
questioner should skip the question and returns a None for default
(since that won't be used anyway) if --dry-run is used.
|
|
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.
|
|
|
|
This will also trigger the ready method of any tested application,
which was not run before.
|
|
Thanks to rockallite for the report.
|
|
|
|
The test client will now create a session when it is first accessed
if no session already exists.
|
|
- Template loader overriding is managed with contexts.
- The test loader is a class (function based loaders entered deprecation timeline
in 1.4).
- Template loader overrider that overrides with test loader added.
|
|
|
|
Thanks rockallite.wulf for the report.
|
|
|
|
Nested deconstruction should (silently) handle Field.deconstruct() as
well as other arbitrary deconstructable objects. This allows having a
field in the deconstruction of another field.
|
|
The first part of django.contrib.postgres, including model and two form
fields for arrays of other data types.
This commit is formed of the following work:
Add shell of postgres app and test handling.
First draft of array fields.
Use recursive deconstruction.
Stop creating classes at lookup time.
Add validation and size parameter.
Add contained_by lookup.
Add SimpleArrayField for forms.
Add SplitArrayField (mainly for admin).
Fix prepare_value for SimpleArrayField.
Stop using MultiValueField and MultiWidget.
They don't play nice with flexible sizes.
Add basics of admin integration.
Missing:
- Tests
- Fully working js
Add reference document for django.contrib.postgres.fields.ArrayField.
Various performance and style tweaks.
Fix internal docs link, formalise code snippets.
Remove the admin code for now.
It needs a better way of handing JS widgets in the admin as a whole
before it is easy to write. In particular there are serious issues
involving DateTimePicker when used in an array.
Add a test for nested array fields with different delimiters.
This will be a documented pattern so having a test for it is useful.
Add docs for SimpleArrayField.
Add docs for SplitArrayField.
Remove admin related code for now.
definition -> description
Fix typo.
Py3 errors.
Avoid using regexes where they're not needed.
Allow passing tuples by the programmer.
Add some more tests for multidimensional arrays.
Also fix slicing as much as it can be fixed.
Simplify SplitArrayWidget's data loading.
If we aren't including the variable size one, we don't need to search
like this.
|
|
Moved ServerHandler helper class to tests.
|
|
Fixed #22421 -- Regression in fixtures loading.
|
|
Previously the FORMAT_MODULE_PATH setting only accepted one string (dotted
module path). A feature has been added to also allow a list of strings.
This is useful when using several reusable third party apps that define new
formats. We can now use them all and we can even override some of the formats
by providing a project-wide format module.
|