| Commit message (Collapse) | Author | Age | Files | Lines |
|
|
|
| |
SQLInsertCompiler
|
|
|
|
| |
places and max digits.
|
| |
|
|
|
|
|
| |
Considering the APIs exercised by these test cases, it's hard to make
them independent.
|
|
|
|
|
|
| |
for backwards compatibility.
Thanks Tom Christie for the report and review.
|
| |
|
|
|
|
|
|
|
|
|
| |
check to Model.save()
This mostly reverts 5643a3b51be338196d0b292d5626ad43648448d3 and
81e1a35c364e5353d2bf99368ad30a4184fbb653.
Thanks Carl Meyer for review.
|
|
|
|
|
|
| |
Unused since c2ba59fc1da5287d6286e2c2aca4083d5bafe056 (Django 1.0).
Thanks Andy Baker for the report.
|
|
|
|
| |
on_delete for ForeignKey/OneToOneField
|
|
|
|
| |
migrations (refs #24919).
|
|
|
|
|
|
| |
SlugField.
Thanks Flavio Curella and Berker Peksag for the initial patch.
|
| |
|
|
|
|
|
|
| |
TypeError on bad value.
For consistency with AutoField.
|
|
|
|
| |
This is consistent with CharField.
|
| |
|
| |
|
|
|
|
|
|
|
|
| |
ForeignKey.get_db_prep_value() test and release notes.
Fixed in master by b68212f539f206679580afbfd008e7d329c9cd31.
Forwardport of 290c9d665490d80b0a1b648fb022190d7dc375fc from stable/1.8.x
|
|
|
|
| |
assertEqual in tests.
|
| |
|
| |
|
| |
|
|
|
|
| |
pk object.
|
|
|
|
|
|
|
| |
This adds a new method, Apps.lazy_model_operation(), and a helper function,
lazy_related_operation(), which together supersede add_lazy_relation() and
make lazy model operations the responsibility of the App registry. This
system no longer uses the class_prepared signal.
|
|
|
|
|
|
|
|
| |
Field.rel is now deprecated. Rel objects have now also remote_field
attribute. This means that self == self.remote_field.remote_field.
In addition, made the Rel objects a bit more like Field objects. Still,
marked ManyToManyFields as null=True.
|
|
|
|
|
|
|
|
|
| |
generator choices.
If Field.choices is provided as an iterator, consume it in __init__ instead
of using itertools.tee (which ends up holding everything in memory
anyway). Fixes a bug where deconstruct() was consuming the iterator but
bypassing the call to `tee`.
|
|
|
|
|
|
|
| |
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.
|
| |
|
|
|
|
|
|
| |
foreign keys.
Joint effort between myself, Josh, Anssi and Shai.
|
|
|
|
|
|
|
| |
one_to_many.
Thanks Carl Meyer and Tim Graham for the reviews and to all involved
in the discussion.
|
| |
|
|
|
|
| |
abstract models.
|
| |
|
| |
|
| |
|
| |
|
|
|
|
|
|
|
|
| |
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.
|
| |
|
|
|
|
| |
#20439.
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
Several issues resolved here, following from a report that a base_field
of GenericIpAddressField was failing.
We were using get_prep_value instead of get_db_prep_value in ArrayField
which was bypassing any extra modifications to the value being made in
the base field's get_db_prep_value. Changing this broke datetime
support, so the postgres backend has gained the relevant operation
methods to send dates/times/datetimes directly to the db backend instead
of casting them to strings. Similarly, a new database feature has been
added allowing the uuid to be passed directly to the backend, as we do
with timedeltas.
On the other side, psycopg2 expects an Inet() instance for IP address
fields, so we add a value_to_db_ipaddress method to wrap the strings on
postgres. We also have to manually add a database adapter to psycopg2,
as we do not wish to use the built in adapter which would turn
everything into Inet() instances.
Thanks to smclenithan for the report.
|
|
|
|
|
|
|
|
| |
support them
It was mainly for MySQL on Python 3, but now the current
recommended MySQL driver for Python 3 (mysqlclient) does support
binary fields, it is unneeded. Refs #20377.
|
|
|
|
| |
DurationFields
|
|
|
|
| |
GenericIPAddressField
|
|
|
|
|
|
|
| |
retrieving fields.
Thanks to Russell Keith-Magee for mentoring this Google Summer of
Code 2014 project and everyone else who helped with the patch!
|
|
|
|
| |
in refs #23891.
|
|
|
|
|
|
| |
system check framework.
Thanks Markus Holtermann for 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.
|
|
|
|
| |
related_name, convert to text.
|
|
|
|
|
| |
Thanks Jonathan Lindén for the initial patch, and Tim Graham
and Gabe Jackson for the suggestions.
|
|
|
|
| |
Django test suite.
|