summaryrefslogtreecommitdiff
path: root/tests
AgeCommit message (Collapse)Author
2013-10-22Fixed E221 pep8 warnings.Tim Graham
2013-10-22Fixed #5789 -- Changed LocaleMiddleware session variable to '_language'.Bouke Haarsma
The old 'django_language' variable will still be read from in order to migrate users. The backwards-compatability shim will be removed in Django 1.8. Thanks to jdunck for the report and stugots for the initial patch.
2013-10-22Removed import * in tests.Tim Graham
Thanks to flake8 path/to/file.py | awk -F ' ' '{ print $5 }' | sort | uniq
2013-10-22Decode from UTF-8 explicitly when reading a text file in makemessages.Ramiro Morales
This shows itself with Python 3 under Windows where UTF-8 usually isn't the default file I/O encoding and caused one failure and three errors in our test suite under that platform setup.
2013-10-21Fixed #19724 -- Output note when showing only core management commandsClaude Paroz
When listing available management commands, only core commands are listed if settings have any error. This commit adds a note in this case so errors are not totally silently skipped. Thanks Peter Davis for the report.
2013-10-21Fixed #21275 -- Fixed a serializer error when generating migrations for ↵Loic Bistuer
contrib.auth. The migration serializer now looks for a deconstruct method on any object.
2013-10-21Removed some direct settings manipulations in tests; refs #21230.Bouke Haarsma
2013-10-21Fixed E227 pep8 warningsTim Graham
2013-10-21Fixed #21288 -- Fixed E126 pep8 warningsAlasdair Nicol
2013-10-21Fixed an I18N test class tearDown method.Ramiro Morales
2013-10-19Added support for serializing class methods. - Refs #21290.Loic Bistuer
The new handling allows us to do away with the whitelisting that was required to support date and datetime objects.
2013-10-19Fixed #21283 -- Added support for migrations if models is a package.Loic Bistuer
Thanks Markus Holtermann for the report.
2013-10-19Removed unused local variables in tests.Tim Graham
2013-10-18Fixed #21287 -- Fixed E123 pep8 warningsAlasdair Nicol
2013-10-18Fixed #21268 -- Fixed E303 pep8 warningsAlasdair Nicol
2013-10-18Fixed #21267 -- Fixed E502 pep8 warningsAlasdair Nicol
2013-10-17Fixed #21285 -- Fixed E121,E122 pep8 warningsAlasdair Nicol
2013-10-17Fixed #21284 -- Prevented KeyError swallowing in fetch_commandClaude Paroz
Thanks wildfire for the report.
2013-10-17Fixed #21282 -- Made HttpResponse.serialize_headers accept latin-1Claude Paroz
Thanks Raphaël Barrois for the report and the initial patch and Aymeric Augustin for the review.
2013-10-17Added test for a921f06 - refs #21280.Loic Bistuer
This commit also lays the groundwork for future tests for the makemigrations command.
2013-10-17Fixed #18659 -- Deprecated request.REQUEST and MergeDictBouke Haarsma
Thanks Aymeric Augustin for the suggestion.
2013-10-17Fixed #21270 -- Fixed E701 pep8 warningsAlasdair Nicol
2013-10-16Fixed #19657 -- Made sql commands honor allow_migrateClaude Paroz
Thanks Manel Clos for the report and the initial patch, and Marc Tamlyn and Tim Graham for the review.
2013-10-16Fixed #7551 -- Made GFK allow None init argument.Bouke Haarsma
Thanks SamBull for the report.
2013-10-16Improve migration optimizer to be able to optimize through other opsAndrew Godwin
2013-10-15Merge pull request #1744 from unaizalakain/ticket_7261Alex Gaynor
Fixed #7261 -- support for __html__ for library interoperability
2013-10-16Fixed DeprecationWarning caused by assertEquals.Loic Bistuer
2013-10-15Fixed #16855 -- select_related() chains as expected.Marc Tamlyn
select_related('foo').select_related('bar') is now equivalent to select_related('foo', 'bar'). Also reworded docs to recommend select_related(*fields) over select_related()
2013-10-15Fixed #21263 -- Fixed issue with override_settings in inherited classesClaude Paroz
When both parent and child classes are decorated with override_settings, child class settings should take precedence. Thanks Sephi for the report and Marc Tamlyn for the review.
2013-10-15Merge pull request #1382 from loic/ticket19617Marc Tamlyn
Fixed #19617 -- Refactored form metaclasses to support more inheritance scenarios.
2013-10-15Fixed #7261 -- support for __html__ for library interoperabilityUnai Zalakain
The idea is that if an object implements __html__ which returns a string this is used as HTML representation (eg: on escaping). If the object is a str or unicode subclass and returns itself the object is a safe string type. This is an updated patch based on jbalogh and ivank patches.
2013-10-14Fixed #21266 -- Fixed E201,E202 pep8 warnings.Larry O'Neill
2013-10-14Fixed #21269 -- Don't crash when CommandError contains non-asciiClaude Paroz
Thanks kontakt@eikefoken.de for the report.
2013-10-14Close file after tests added in 945e033a69.Ramiro Morales
Avoids failures on Windows. Refs #8918.
2013-10-14Fixed #8620 -- Updated the Form metaclass to support excluding fields by ↵Loic Bistuer
shadowing them.
2013-10-14Fixed #19617 -- Refactored Form metaclasses to support more inheritance ↵Loic Bistuer
scenarios. Thanks apollo13, funkybob and mjtamlyn for the reviews.
2013-10-14Fixed #15888 -- Made tablename argument of createcachetable optionalClaude Paroz
Thanks Aymeric Augustin for the report and the documentation and Tim Graham for the review.
2013-10-13Fixed #21198 -- Prevented invalid use of @python_2_unicode_compatible.Aymeric Augustin
Thanks jpic for the report and chmodas for working on a patch. Reverts 2ea80b94. Refs #19362.
2013-10-13Fixed #19560 -- Identified field in warning for naive datetime.Aymeric Augustin
Thanks gcc for the report and vajrasky for the patch.
2013-10-12Fixed #21173 -- Stopped fixing format for date-based widgets at init timeClaude Paroz
Thanks Marc Tamlyn for the review.
2013-10-11Fixed errors in 848101bf1736d1c01eb86968e85a14c7466bb376Tim Graham
2013-10-11Added tests for URLValidator schemes.Sascha Peilicke
2013-10-11Fixed #13252 -- Added ability to serialize with natural primary keys.Tai Lee
Added ``--natural-foreign`` and ``--natural-primary`` options and deprecated the ``--natural`` option to the ``dumpdata`` management command. Added ``use_natural_foreign_keys`` and ``use_natural_primary_keys`` arguments and deprecated the ``use_natural_keys`` argument to ``django.core.serializers.Serializer.serialize()``. Thanks SmileyChris for the suggestion.
2013-10-11Fixed #8918 -- Made FileField.upload_to optional.Tim Graham
Thanks leahculver for the suggestion and dc and vajrasky for work on the patch.
2013-10-11Fixed assorted flake8 errors.Tim Graham
2013-10-10Whitespace cleanup.Tim Graham
* Removed trailing whitespace. * Added newline to EOF if missing. * Removed blank lines at EOF. * Removed some stray tabs.
2013-10-10Fixed an undefined variable and clarified the purpose of a test.Tim Graham
refs #4459.
2013-10-10Fixed "redefinition of unused 'foo' from line X" pyflakes warnings.Tim Graham
2013-10-10Used "is" for comparisons with None.Tim Graham
2013-10-10Removed unnecessary semicolons.Tim Graham