summaryrefslogtreecommitdiff
path: root/tests
AgeCommit message (Collapse)Author
2016-02-05Fixed #26176 -- Fixed E123 flake8 warnings.Tim Graham
2016-02-05Fixed #25833 -- Added support for non-atomic migrations.Pankrat
Added the Migration.atomic attribute which can be set to False for non-atomic migrations.
2016-02-04Fixed #26144 -- Warned when dumping proxy model without concrete parent.Yoong Kang Lim
2016-02-04Made multiline assertRaises* conform to flake8's E128 rule.Hasan
2016-02-04Fixed #26089 -- Removed custom user test models from public API.Simon Charette
Thanks to Tim Graham for the review.
2016-02-04Stopped registering the sessions tests models to the sessions app.Simon Charette
2016-02-04Fixed #13875 -- Made admin's submit_row template tag pass whole context.Federico Capoano
2016-02-04Fixed #12405 -- Added LOGOUT_REDIRECT_URL setting.Hugo Osvaldo Barrera
After a user logs out via auth.views.logout(), they're redirected to LOGOUT_REDIRECT_URL if no `next_page` argument is provided.
2016-02-03Changed gypsy to manouche in docs and tests.Blake Griffith
"Gypsy" is considered a slur by the Romani people whom it refers to. "manouche jazz" is used in place of "gypsy jazz" and is an accepted term for the same genre of music.
2016-02-02Fixed #25731 -- Removed unused choices kwarg for Select.render()jpic
2016-02-02Fixed #23971 -- Added "Has date"/"No date" choices for DateFieldListFilter.rynomster
2016-02-02Fixed #24316 -- Made ModelAdmin.list_display callables use an appropriate ↵Tim Graham
CSS class name. Thanks Berker Peksag for the review.
2016-02-01Fixed #11313 -- Made ModelAdmin.list_editable more resilient to concurrent ↵bphillips
edits. Allowed admin POSTed bulk-edit data to use modeladmin.get_queryset() so that the ids in the POST data have a chance to match up even if the objects on the current page changed based on the ordering.
2016-02-01Fixed #26155 -- Skipped URL checks if no ROOTURL_CONF setting.Buddy Lindsey, Jr
2016-02-01Fixed incorrect permissions check for admin's "Save as new".Myk Willis
This is a security fix.
2016-02-01Fixed #7923 -- Added links to objects displayed by ModelAdmin.raw_id_fields.Hugo Osvaldo Barrera
2016-01-30Fixed #14402 -- Removed clearing of help_text for ManyToManyField's ↵Alexander Gaevsky
raw_id_fields.
2016-01-30Fixed #25758 -- Defaulted to current language FORMATs in date/time filtersClaude Paroz
Thanks Ali Lozano for the report and the initial patch, and Tim Graham for the review.
2016-01-29Refs #26022 -- Replaced six.assertRaisesRegex with assertRaisesMessage as ↵Hasan
appropriate.
2016-01-29Refs #26022 -- Used context manager version of assertRaisesMessage in tests.Hasan
2016-01-29Refs #26022 -- Used context manager version of assertRaises in tests.Hasan
2016-01-29Cosmetic cleanups in tests/utils_tests/test_numberformat.pyTim Graham
2016-01-29Fixed #26120 -- Made HStoreField cast keys and values to strings.Greg Chapple
HStoreField now converts all keys and values to string before they're saved to the database.
2016-01-28Fixed #26129 -- Made invalid forms display initial values of disabled fields.Tim Graham
2016-01-28Fixed #20415 -- Ensured srid isn't localized in OpenLayers JavaScript.Tim Graham
2016-01-28Fixed #26147 -- Relaxed expected values in GIS tests to account for ↵Tim Graham
database/library differences.
2016-01-28Refs #19536 -- Tweaked test assertion to avoid collision with CSRF token.Tim Graham
2016-01-28Refs #26015 -- Added regression test for an empty sitemap.Andrew Kuchev
2016-01-28Fixed #25354 -- Added class/app_label interpolation for related_query_name.James Pulec
2016-01-28Added a missing test method in tests/migrations/test_writer.py.Yoong Kang Lim
2016-01-28Fixed #26138 -- Ensured geometry_field's geometry is always serializedClaude Paroz
Thanks Bernd Schlapsi for the report.
2016-01-26Fixed #25546 -- Prevented duplicate queries with nested prefetch_related().François Freitag
2016-01-26Fixed #26122 -- Fixed copying a LazyObjectBen Kraft
Shallow copying of `django.utils.functional.LazyObject` or its subclasses has been broken in a couple of different ways in the past, most recently due to 35355a4.
2016-01-26Fixed #25848 -- Set template origin on each node.Preston Timmons
Prior to 55f12f8709, the template origin was available on each node via `self.token.source[0]`. This behavior was removed when debug handling was simplified, but 3rd-party debugging tools still depend on its presence. This updates the Parser to set origin on individual nodes. This enables the source template to be determined even when template extending or including is used.
2016-01-25Refs #24919 -- Used the documented way of disabling migrations per app.Simon Charette
2016-01-25Fixed #26135 -- Adjusted the migration questioner's handling of disabled apps.Simon Charette
This was causing an issue when calling the `migrate` command in a test case with the `available_apps` attribute pointing to an application with migrations disabled using the `MIGRATION_MODULES` setting. Thanks to Tim Graham for the review. Refs #24919
2016-01-25Fixed #26109 -- Raised a helpful error if loader.select_tamplate() is passed ↵Ahmed Mohamed
a string.
2016-01-25Fixed #26125 -- Fixed E731 flake warnings.userimack
2016-01-25Fixed #25968 -- Changed project/app templates to use a "py-tpl" suffix.Chris Lamb
Debian packages unconditionally byte-compile .py files on installation and do not silence errors by design. Therefore, we need a way of shipping these invalid .py files without a .py extension but ensuring that when we template them, they end up as .py. We don't special-case .py files so that the all the TemplateCommand command-line options (eg. extra_files and extensions) still work entirely as expected and it may even be useful for other formats too.
2016-01-23Fixed #24109 -- Allowed RunSQL and RunPython operations to be elided.Simon Charette
Thanks to Markus Holtermann and Tim Graham for their review.
2016-01-23Fixed typos in test comments.Mingun Pak
2016-01-23Fixed #25989 -- Corrected sitemap's Last-Modified header to use the latest ↵Alexander Rudakov
lastmod of all sitemaps. Previously, the lastmod of the last sitemap was always used. All sitemaps are required to have a lastmod.
2016-01-23Fixed #26093 -- Allowed escape sequences extraction by gettext on Python 3Claude Paroz
Thanks Sylvain Fankhauser for the report and Tim Graham for the review.
2016-01-22Fixed #24116 -- Moved AdminSite.check_dependencies() to system checks.Vincenzo Pandolfo
2016-01-22Fixed #26104 -- Fixed TypeError when passing number to forms.DurationField.Alexander Gaevsky
2016-01-22Fixed #26118 -- Added 'is' operator to if template tag.Preston Timmons
2016-01-22Fixed #26112 -- Error when computing aggregate of GIS areas.Daniel Wiesmann
Thanks Simon Charette and Claude Paroz for the reviews.
2016-01-22Fixed #25910 -- Rejected read-only property names in model constructors.Joshua Phillips
2016-01-22Fixed #26116 -- Corrected schema's test_alter_implicit_id_to_explicit.Tim Graham
AUTOINCREMENT is dropped converting an AutoField to IntegerField which isn't the point of this test. MySQL would warn or error about this.
2016-01-21Changed `action="."` to `action=""` in tests and docs.Luke Plant
`action="."` strips query parameters from the URL which is not usually what you want. Copy-paste coding of these examples could lead to difficult to track down bugs or even data loss if the query parameter was meant to alter the scope of a form's POST request.