| Age | Commit message (Collapse) | Author |
|
Model.save()
This mostly reverts 5643a3b51be338196d0b292d5626ad43648448d3 and
81e1a35c364e5353d2bf99368ad30a4184fbb653.
Thanks Carl Meyer for review.
Backport of 5980b05c1fad69eef907e0076aa2dc837edab529 from master
|
|
signatures in docs.
Thanks hellbeast for the initial patch.
Backport of 87d55081ea398c65b2503d22ed3907a9175ec729 from master
|
|
Backport of 77f3d7adb1d56d4eb5d22a85e8d383602f937790 from master
|
|
Backport of cbe4efcbc13ad402bf1f1a94b02a8ec93f20327d from master
|
|
Backport of 2b086229a2a6c786e32da37b6b122c2cc894450f from master
|
|
auto_now_add
Thanks djbug for the report and Aymeric Augustin and Carl Meyer for the
review.
Backport of 8119876d4a533fbc2ba4d1c30eaddbcc28119488 from master
|
|
Edited localflavor doc to point to the external package documentation,
leaving just the 'How to migrate' section in Django.
Backport of 87fed9444033533ad7105c4b1e4ffc5d7854a2c6 from master.
|
|
be bypassed.
Backport of 81e1a35c364e5353d2bf99368ad30a4184fbb653 from master
|
|
Backport of 53bc6e2e98b4889082049f50718b13f8d5d84b6b from master
|
|
refer to the same model.
Backport of b9b8411129efe13642cef1fc6bbfc62bed717352 from master
|
|
As suggested by Anssi. This has the slightly strange side effect of
passing the expression to Expression.convert_value has the expression
passed back to it, but it allows more complex patterns of expressions.
Backport of 32d4db66b9 from master
|
|
Thanks Carl Meyer and Tim Graham for the reviews and to all involved
in the discussion.
Backport of 18c0aaa9123579375294fcc4a8ee7e3530176b88 from master
|
|
The method is mainly intended for use with UUIDField. For UUIDField we
want to call the field's default even when primary key value is
explicitly set to None to match the behavior of AutoField.
Thanks to Marc Tamlyn and Tim Graham for review.
Backport of 8adc59038cdc6ce4f9170e4de2d716d940e136b3 from master
|
|
Refactored compiler SELECT, GROUP BY and ORDER BY generation.
While there, also refactored select_related() implementation
(get_cached_row() and get_klass_info() are now gone!).
Made get_db_converters() method work on expressions instead of
internal_type. This allows the backend converters to target
specific expressions if need be.
Added query.context, this can be used to set per-query state.
Also changed the signature of database converters. They now accept
context as an argument.
|
|
Thanks to Russell Keith-Magee for mentoring this Google Summer of
Code 2014 project and everyone else who helped with the patch!
|
|
|
|
Use INTERVAL DAY(9) TO SECOND(6) for Durationfield on Oracle rather than
storing as a NUMBER(19) of microseconds.
There are issues with cx_Oracle which require some extra data
manipulation in the database backend when constructing queries, but it
handles the conversion back to timedelta objects cleanly.
Thanks to Shai for the review.
|
|
A field for storing periods of time - modeled in Python by timedelta. It
is stored in the native interval data type on PostgreSQL and as a bigint
of microseconds on other backends.
Also includes significant changes to the internals of time related maths
in expressions, including the removal of DateModifierNode.
Thanks to Tim and Josh in particular for reviews.
|
|
Thanks GreenAsJade.
|
|
|
|
|
|
|
|
|
|
Uses native support in postgres, and char(32) on other backends.
|
|
Thanks knowledgepoint-devs for the suggestion.
|
|
|
|
Complete rework of translating data values from database
Deprecation of SubfieldBase, removal of resolve_columns and
convert_values in favour of a more general converter based approach and
public API Field.from_db_value(). Now works seamlessly with aggregation,
.values() and raw queries.
Thanks to akaariai in particular for extensive advice and inspiration,
also to shaib, manfre and timograham for their reviews.
|
|
Thanks to Petr Glotov for spotting this.
|
|
validation.
Thanks mitar for the report.
|
|
|
|
|
|
|
|
Thanks to @timgraham for the review.
|
|
ManyToManyField.
Thanks Loic Bistuer and Tim Graham for help and review.
|
|
Thanks claudep for review.
|
|
Thanks pmartin for the report.
|
|
Thanks to jonathanmorgan for the report and initial patch.
|
|
|
|
|
|
Added DateTimeCheckMixin to avoid the use of default, auto_now, and
auto_now_add options together. Added the fields.E151 Error that is raised
if one or more of these options are used together.
|
|
|
|
|
|
Thanks EvilDMP for the suggestion.
|
|
refs #19934.
|
|
- Docs description of arguments mix up.
- Keep it from erroneously masking E332 check.
- Add checks E338 and E339, tweak message of E337.
|
|
Thanks to Loic Bistuer for review. Minor changes to error messages
done by committer.
|
|
|
|
|
|
Thanks skipjack at peru.com for the suggestion.
|
|
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.
|