| Age | Commit message (Collapse) | Author |
|
GenericIPAddressField.
Backport of 4681d65048ca2553895e10c2c492997b0a78ffba from master
|
|
abstract models behave.
This partially reverts commit bc7d201bdbaeac14a49f51a9ef292d6312b4c45e.
Thanks Tim for the review.
Refs #25858.
Backport of 0223e213dd690b6b6e0669f836a20efb10998c83 from master
|
|
Thanks to Karl Hobley for the report and Markus, Shai, Aymeric for their input
and Tim for the review.
Backport of bc7d201bdbaeac14a49f51a9ef292d6312b4c45e from master
|
|
Positive(Small)IntegerField on MySQL.
Backport of 710e11d076b9e5ef3e3b486dfb70bb55b788691c from master
|
|
|
|
|
|
|
|
Unused since c2ba59fc1da5287d6286e2c2aca4083d5bafe056 (Django 1.0).
Thanks Andy Baker for the report.
|
|
ForeignKey/OneToOneField
|
|
Thanks Flavio Curella and Berker Peksag for the initial patch.
|
|
|
|
This is consistent with CharField.
|
|
|
|
|
|
|
|
|
|
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.
|
|
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`.
|
|
|
|
|
|
|
|
|
|
|
|
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.
|
|
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.
|
|
|
|
Thanks to Russell Keith-Magee for mentoring this Google Summer of
Code 2014 project and everyone else who helped with the patch!
|
|
Thanks Markus Holtermann for review.
|
|
|
|
|
|
Thanks Jonathan Lindén for the initial patch, and Tim Graham
and Gabe Jackson for the suggestions.
|
|
|
|
Such a field will no longer pass model validation.
|
|
|
|
|
|
Thanks Matthieu Agopian for the report.
|
|
|
|
This is a security fix; disclosure to follow shortly.
|
|
|
|
Thanks to @timgraham for the review.
|
|
|
|
This seems worthwhile in its own right, but also works around an Oracle
bug (in versions 10 -- 11.1) where the use of Unicode would reset the
date/time formats, causing ORA-01843 errors.
Thanks Trac users CarstenF for the report, jtiai for the initial patch,
and everyone who contributed to the discussion on the ticket.
|
|
Failing test introduced in fix for refs #22210.
|
|
Previously, saving a model instance to a non-related field (in
particular a FloatField) would silently convert the model to an Integer
(the pk) and save it. This is undesirable behaviour, and likely to cause
confusion so the validatio has been hardened.
Thanks to @PirosB3 for the patch and @jarshwah for the review.
|
|
|
|
Thanks Piotr Kasprzyk for help with the patch.
|
|
Thanks tunixman for the report and Baptiste Mispelon and
Shai Berger for reviews.
|
|
This is the result of Christopher Medrela's 2013 Summer of Code project.
Thanks also to Preston Holmes, Tim Graham, Anssi Kääriäinen, Florian
Apolloner, and Alex Gaynor for review notes along the way.
Also: Fixes #8579, fixes #3055, fixes #19844.
|
|
Signed-off-by: Jason Myers <jason@jasonamyers.com>
|