| Age | Commit message (Collapse) | Author |
|
|
|
cleaned_data is no longer deleted when form validation fails but only
contains the data that did validate.
Thanks to the various contributors to this patch (see ticket).
|
|
|
|
Lots of functions were moved. Use explicit imports in all cases
to keey it easy to identify where the functions come from.
|
|
|
|
|
|
django.utils.unittest.* weren't touched -- they're only imported on Python 2.6.
|
|
|
|
The erroneous message was user visible in values_list() calls.
Thanks to ojii for report and review, and to antoviaque for the patch.
|
|
Cleared aggregations on add_date_select method so only distinct dates
are returned when dealing with a QuerySet that contained aggregations.
That would cause the query set to return repeated dates because it
would look for distinct (date kind, aggregation) pairs.
|
|
|
|
|
|
- backends: supports_transactions()
- select_for_update tests
|
|
When a FileField value has been saved, a new validation should not
regenerate a new filename when checking the length. Refs #9893.
|
|
This commit tackles a couple of issues. First, in certain cases there
were some mixups if field.attname or field.name should be deferred.
Field.attname is now always used.
Another issue tackled is a case where field is both deferred by
.only(), and selected by select_related. This case is now an error.
A lot of thanks to koniiiik (Michal Petrucha) for the patch, and
to Andrei Antoukh for review.
|
|
|
|
Thanks mehta.apurva at gmail.com for the report and the initial patch
and neaf for the complete patch.
|
|
Thanks Vinay Sajip for the support of his django3 branch and
Jannis Leidel for the review.
|
|
|
|
|
|
Tests were still failing with MySQL. It seems a rollback is solving
the issue.
|
|
inherited model
Thanks to milosu for the report, tests and initial patch.
|
|
|
|
Thanks msiedlarek, jpaugh64 and vlinhart!
|
|
When generating error message in to_python, any unicode string
containing non-ascii characters triggered a UnicodeEncodeError for
most field types.
|
|
|
|
gzip.GzipFile does not support files with mode set to None.
|
|
Moved sys.exit(1) so as failing management commands reach it
only when running from command line.
|
|
Generic cleanup and dead code removal in deferred model field loading
and model.__reduce__().
Also fixed an issue where if an inherited model with a parent field
chain parent_ptr_id -> id would be deferred loaded, then accessing
the id field caused caused a database query, even if the id field's
value is already loaded in the parent_ptr_id field.
|
|
This should prevent storing all rows in memory when big sets of
data are dumped.
See ticket for heroic contributors.
|
|
This was recently fixed for one-to-one relations; this patch adds
support for foreign keys. Thanks kaiser.yann for the report and
the initial version of the patch.
|
|
Databases with update_can_self_select = False (MySQL for example)
generated non-necessary queries when saving a multitable inherited
model, and when the save resulted in update.
|
|
This is a preparation for unicode literals general usage in
Django (Python 3 compatibility).
|
|
|
|
|
|
MySQL generates an extra query in inheritance cases when doing an update.
This results in a test failure when checking for number of queries in
update_only_fields tests. Added a skip temporarily to avoid this test
failure. Refs #18304.
|
|
Added the ability to update only part of the model's fields in
model.save() by introducing a new kwarg "update_fields". Thanks
to all the numerous reviewers and commenters in the ticket
|
|
This new syntax for next() has been introduced in Python 2.6 and is
compatible with Python 3.
|
|
Fixed #17851 -- Added __lt__ and @total_ordering to models.Field,
made sure these work correctly on other objects than Field, too.
|
|
Also replaced StringIO.StringIO by BytesIO in some other appropriate
places. StringIO is not available in Python 3.
|
|
|
|
|
|
Ticket 18163 - use faster password hasher in tests.
|
|
Converted aware datetimes to the default time zone before using them
in the context of a DateField.
|
|
|
|
Thanks Clueless for the initial patch.
Note that unittest has been purposely left out (external package only used by Python 2.6).
|
|
And started the deprecation path for django.utils.simplejson.
Thanks Alex Ogier, Clueless, and other contributors for their
work on the patch.
|
|
Made a test checking ORM-generated query string case-insensitive.
|
|
All relevant state is now properly reset whenever TIME_ZONE or USE_TZ
are changed in tests.
|
|
objects were found.
Thanks brondsem for the report, Szymon Pyzalski for the patch and oinopion for review.
git-svn-id: http://code.djangoproject.com/svn/django/trunk@17917 bcc190cf-cafb-0310-a4f2-bffc1f526a37
|