| Age | Commit message (Collapse) | Author |
|
ValidationError constructor.
This patch also fixes update_error_dict to better handle the use case described
in this ticket, previously the type of the provided container could be lost in
some conditions.
Thanks Russell Keith-Magee for the report and Tim Graham for review.
|
|
This allows specifying ForeignKeys in REQUIRED_FIELDS when using a
custom User model.
Thanks cjerdonek and bmispelon for suggestion and timgraham for review.
|
|
to urlize.
It now works with something like google.com/foo/bar
|
|
refer to correct field.
Thanks Tim Graham for suggestion and review.
|
|
|
|
The Model.from_db() is intended to be used in cases where customization
of model loading is needed. Reasons can be performance, or adding custom
behavior to the model (for example "dirty field tracking" to issue
automatic update_fields when saving models).
A big thank you to Tim Graham for the review!
|
|
Thanks rpbarlow for the suggestion; and loic, akaariai, and jorgecarleitao
for reviews.
|
|
|
|
MultiValueDict.
Previously, GET, POST, and FILES on an HttpRequest were created in
the __init__ method as dictionaries. This was not something you would
usually notice causing trouble in production as you'd only see a
WSGIRequest, but in testing using the test client, calling .getlist
on GET, POST, or FILES for a request with no get/post data resulted in
an AttributeError.
Changed GET and POST on an HttpRequest object to be mutable
QueryDicts (mutable because the Django tests, and probably many
third party tests, were expecting it).
|
|
Now QueryDict() is equivalent to QueryDict('') or QueryDict(None).
|
|
raised and DEBUG=True
Thanks GDorn and gox21 for report.
Thanks Tim Graham for idea and review.
|
|
|
|
Thanks Tim Graham and Aymeric Augustin for the review.
|
|
|
|
Undocumented, untested and probably not even useful feature.
|
|
It makes possible to have your sitemap in multiple languages when
using i18n in URLs.
|
|
|
|
Thanks jorgecarleitao and mmardini for reviews.
|
|
is within limits of the database.
Thanks russellm for report and Tim Graham for review.
|
|
|
|
Keeping backwards compatibility with test_runner.option_list is
tricky and would imply transforming an optparse.Option to an
argparse.Action. I choose to introduce a backwards incompatible
change because it only affects testing, not runtime behavior.
|
|
|
|
Also added a compatibility check for changed middleware defaults.
Forwardport of d94de802d3 from stable/1.7.x
|
|
Thanks chrj for the suggestion.
|
|
Thanks mrmachine for the suggestion.
|
|
An ImproperlyConfigured exception will be raised they mismatch.
|
|
from a different Django version.
Thanks FunkyBob for the suggestion, prasoon2211 for the initial patch,
and akaariai, loic, and charettes for helping in shaping the patch.
|
|
This patch is two-fold; first it ensure that Django does close everything in
request.FILES at the end of the request and secondly the storage system should
no longer close any files during save, it's up to the caller to handle that --
or let Django close the files at the end of the request.
|
|
Credits for the initial patch go to ejucovy;
big thanks to Tim Graham for the review.
|
|
It prevented the GZipMiddleware from compressing some data types even on
more recent version of IE where the corresponding bug was fixed.
Thanks Aaron Cannon for the report and Tim Graham for the review.
|
|
|
|
|
|
|
|
|
|
|
|
|
|
starting with //
``HttpRequest.build_absolute_uri()`` now correctly handles paths starting with ``//``.
``WSGIRequest`` now doesn't remove all the leading slashes either,
because ``http://test/server`` and http://test//server`` aren't the same thing
(RFC2396).
Thanks to SmileyChris for the initial patch.
|
|
Prevented unlimited memory consumption when running background tasks
with DEBUG=True.
Thanks Rob, Alex, Baptiste, and others.
|
|
variables.
Thanks Florian for the bug report, luyikei for the initial code patch, and
Bouke for the code review feedback.
|
|
ValueError.
This prevents silent data loss.
Thanks Aymeric Augustin for the initial patch and Loic Bistuer for the review.
|
|
Thanks clime for the report.
|
|
|
|
|
|
Thanks Daniel Pope for the suggestion.
|
|
Fixed #20550 -- Added ability to preserve test db between runs
|
|
|
|
`django.forms.extras.widets.SelectDateWidget`
Thanks danielsamuels for the report
|
|
|
|
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.
|
|
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.
|