summaryrefslogtreecommitdiff
path: root/tests
AgeCommit message (Collapse)Author
2013-07-31Fixed #20649 -- Allowed blank field display to be defined in the initial ↵Alex Couper
list of choices.
2013-07-31Fixed #19987 -- Disabled host validation when DEBUG=True.Will Hardy
The documentation promises that host validation is disabled when DEBUG=True, that all hostnames are accepted. Domains not compliant with RFC 1034/1035 were however being validated, this validation has now been removed when DEBUG=True. Additionally, when DEBUG=False a more detailed SuspiciousOperation exception message is provided when host validation fails because the hostname is not RFC 1034/1035 compliant.
2013-07-31Fixed #20826 -- Moved Manager.raw() and Manager._insert() to the QuerySet class.Loic Bistuer
2013-07-31Fixed #15624 -- Made sure aggregations are present in SELECTFlorian Hahn
2013-07-31Fixed #11521 -- usage of field.attname in .update()Anssi Kääriäinen
Fixed already by previous patch, only test added.
2013-07-31Added field.attname to Options.name_mapAnssi Kääriäinen
The change also removed allow_explicit_fk from sql/query.py.
2013-07-31Fixed #20348 -- Consistently handle Promise objects in model fields.Tai Lee
All Promise objects were passed to force_text() deep in ORM query code. Not only does this make it difficult or impossible for developers to prevent or alter this behaviour, but it is also wrong for non-text fields. This commit changes `Field.get_prep_value()` from a no-op to one that resolved Promise objects. All subclasses now call super() method first to ensure that they have a real value to work with.
2013-07-31Added a test for AdminSite.app_index_template; refs #8498.SusanTan
2013-07-31Fixed #20819 -- Return 404 instead of 500 error when ``staticfiles`` view is ↵Tai Lee
used in production.
2013-07-30Fixed #10491 -- Allowed passing lazy objects to HttpResponseRedirect.Baptiste Mispelon
Thanks liangent for the report.
2013-07-30Removed part of a test that doesn't work on Jenkins; refs #19877.Tim Graham
2013-07-30Fixed a test that depended on the DB backend; refs #19877. Thanks Loic.Tim Graham
2013-07-30Fixed #19877 -- Added `--no-color` option to `BaseCommand` to avoid using ↵Jose L. Patino
output styles.
2013-07-30Implement allow_migrate for migration operationsAndrew Godwin
2013-07-30Rename allow_syncdb to allow_migrateAndrew Godwin
2013-07-30Fixed #19082 -- Enabled admin field pre-population for existing objects.Julien Phalip
Thanks to msaelices and d1ffuz0r for the initial patch and tests.
2013-07-29Removed most of absolute_import importsClaude Paroz
Should be unneeded with Python 2.7 and up. Added some unicode_literals along the way.
2013-07-29Add utf-8 preamble to admin_scripts temp settings fileClaude Paroz
As some settings are copied from current user settings, we cannot be sure the characters are pure ascii.
2013-07-29Deprecated django.utils.importlibClaude Paroz
This was a shim for pre-Python 2.7 support.
2013-07-29Fixed #20817 -- Added html_message parameter to django.core.mail.send_mail()Justin Michalicek
2013-07-29Fixed #18213 -- Allowed empty fixtures (emit a warning rather than raising ↵Przemek Lewandowski
an exception).
2013-07-28Simplified smart_urlquote and added some basic tests.Florian Apolloner
2013-07-27Fixed #11195 -- Added CSS classes to the changelist cells to allow style ↵Julien Phalip
customizations. Thanks to akaihola, Ramiro Morales and vdboor for their work on the patch.
2013-07-27Fixed a number of minor misspellings.Julien Phalip
2013-07-27Fixed #18404 -- Added test for AppStaticStorage with non ascii pathFlorian Hahn
(bug was already fixed in #19357)
2013-07-26Fixed #20805 -- Removed an extra colon beside checkboxes in the admin.Tim Graham
Thanks CollinAnderson for the report.
2013-07-26Updated contrib.admin to use Email/URLInputs; refs #16630Tim Graham
2013-07-26Fixed related model lookup regressionAnssi Kääriäinen
It has been possible to use models of wrong type in related field lookups. For example pigs__in=[a_duck] has worked. Changes to ForeignObject broke that. It might be a good idea to restrict the model types usable in lookups. This should be done intentionally, not accidentally and without any consideration for deprecation path.
2013-07-26Fixed #20625 -- Chainable Manager/QuerySet methods.Loic Bistuer
Additionally this patch solves the orthogonal problem that specialized `QuerySet` like `ValuesQuerySet` didn't inherit from the current `QuerySet` type. This wasn't an issue until now because we didn't officially support custom `QuerySet` but it became necessary with the introduction of this new feature. Thanks aaugustin, akaariai, carljm, charettes, mjtamlyn, shaib and timgraham for the reviews.
2013-07-25Fixed handling of template loader tests.Carl Meyer
Previously, the CachedLoaderTests were never run at all.
2013-07-25Add test for creating M2MsAndrew Godwin
2013-07-25Fixed ._meta.pk_index() virtual field failureAnssi Kääriäinen
2013-07-25Add tests for the migrate command and fix a bug they exposedAndrew Godwin
2013-07-24Fixed #19941 -- Modified runtests.py to make running the tests easier.Anssi Kääriäinen
1. Automatically use tests/../django as the Django version. 2. If settings aren't provided through --settings or DJANGO_SETTINGS_MODULE) then use test_sqlite.
2013-07-24Fixed #14300 -- Fixed initial SQL location if models is a package.Tim Graham
Thanks al_the_x for the report and fheinz for the draft patch.
2013-07-23Fixed #10284 -- ModelFormSet.save(commit=False) no longer deletes objectsTim Graham
Thanks laureline.guerin@ and Wedg.
2013-07-23Fixed #20788 -- exclude() generated subquery failureAnssi Kääriäinen
"Fixed" by adding a test case, the original problem was already fixed by earlier ORM changes. Thanks to david@judicata.com for the report and test case.
2013-07-23Fixed #20782 -- qs.values().aggregate() failureAnssi Kääriäinen
In the combination of .values().aggregate() the aggregate_select_mask didn't include the aggregates added. This resulted in bogus query. Thanks to Trac alias debanshuk for report.
2013-07-22Make migrate command recognise prefixes and 'zero'.Andrew Godwin
2013-07-22Make multi-app-cache tests work againAndrew Godwin
2013-07-22Merge branch 'master' into schema-alterationAndrew Godwin
Conflicts: django/db/backends/mysql/introspection.py django/db/backends/oracle/creation.py django/db/backends/postgresql_psycopg2/creation.py django/db/models/base.py django/db/models/loading.py
2013-07-22Fixed #20781 -- Fixed _has_changed regression with MultiValueFieldClaude Paroz
Thanks Tim Graham for the report.
2013-07-21Fixed #13629 -- Added CSS classes to the `<body>` tag of some admin ↵Thomas Sorrel
templates to allow style customizations per app or per model.
2013-07-21Fixed an email validation regressionClaude Paroz
Thanks Vincent Wagelaar for the report.
2013-07-21Fixed #13696 -- ensured inline pk field is renderedKaren Tracey
2013-07-19Fixed #20765 -- Set small values of `step` using exponential notation.Simon Charette
Browsers parse small factors of 10 as 0 under decimal notation. Thanks to Trac alias matklad for the report and Claude Paroz for the review.
2013-07-19Fixed #18551 -- Enabled skipIfDBFeature/skipUnlessDBFeature to decorate a classClaude Paroz
Thanks Tim Graham for the review and improved patch.
2013-07-19Fixed #14656 -- Added Atom1Feed `published` elementMatt Deacalion Stevens
Some feed aggregators make use of the `published` element as well as the `updated` element (within the Atom standard -- http://bit.ly/2YySb). The standard allows for these two elements to be present in the same entry. `Atom1Feed` had implemented the `updated` element which was incorrectly taking the date from `pubdate`.
2013-07-18Fixed #20767 -- Fixed ModelAdmin.preserve_filters for namespaced URLs.Loic Bistuer
Thanks Collin Anderson for the report.
2013-07-17Allowed Context.push to behave as a context mananger.Curtis Maloney
Thanks Loic Bistuer for the review.