| Age | Commit message (Collapse) | Author |
|
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.
|
|
|
|
|
|
Python 2.7.7 includes compare_digest in the hmac module, but it requires
both arguments to have the same type. This is usually not a problem on
Python 3 since everything is text, but we have mixed unicode and str on
Python 2 -- hence make sure everything is bytes before feeding it into
compare_digest.
|
|
`django.forms.extras.widets.SelectDateWidget`
Thanks danielsamuels for the report
|
|
While at it, fixed a problem in returning empty values
(still with BinaryField/Oracle/Python3).
|
|
|
|
Thanks Tim Graham for the report.
|
|
|
|
`django.get_version` was actually used by the module.
|
|
|
|
Thanks Aymeric Augustin for the report end the review.
|
|
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`.
|
|
|
|
|
|
|
|
|
|
|
|
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 also fixes #22686 as some sort of side-effect.
|
|
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.
|
|
the SECRET_KEY is not a hash
|
|
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.
|
|
|
|
former lookups.
Thanks Anssi Kääriäinen and Tim Graham for the reviews. Refs #17001 and #22650.
|
|
Regression from f51c1f59 when using select_related then prefetch_related
on the reverse side of an O2O:
Author.objects.select_related('bio').prefetch_related('bio__books')
Thanks Aymeric Augustin for the report and tests. Refs #17001.
|
|
When using ManifestStaticFilesStorage, deleted static files would be
correctly cleaned up by "collectstatic --clear", but the manifest file
would still contain the stale entries.
Thanks to tedtieken for the report
|
|
This reverts commit a4737bf6ae36a5f1cb29f2232f6deeff084fabff.
|
|
|
|
|
|
Fixed #22424 -- MySQL doesn't accept migrations' one-off default values ...
|
|
|
|
|
|
|
|
|
|
This reverts commit 5a2556afb9b1b3ef6e0622552970c67ac84ecd28.
|
|
|