summaryrefslogtreecommitdiff
path: root/tests
AgeCommit message (Collapse)Author
2014-02-17Use assertEqual instead of assertEquals.Baptiste Mispelon
2014-02-17Added the possibility to pass a stdin object to a management command.Baptiste Mispelon
This makes testing certain features easier. Thanks to AeroNotix for the original patch.
2014-02-17Merge pull request #2270 from bmispelon/ticket-22030Andrew Godwin
Fixed #22030 -- Don't assume that all fields have a swappable_setting at...
2014-02-16Fixed #19980: Signer broken for binary keys (with non-ASCII chars).MattBlack85
With this pull request, request #878 should considered closed. Thanks to nvie for the patch.
2014-02-16Made the new template.Context.flatten() method a public API.Marek Wywiał
That method was introduced in 9db4271bd11ac23a5a5652bbcdf8fb6d4b997651. Refs #21765.
2014-02-16Fixed #21939 -- Deprecated loading ssi/url tags from future.Zbigniew Siciarz
2014-02-15Fixed bad comparison logic introduced in ↵Baptiste Mispelon
d97bf2e9c8971764690caaf81a0914bc368d6b02. Refs #21765. Thanks to kezabelle for the quick report and to onjin for providing the patch.
2014-02-15Fixed #21725 -- Fixed JavaScript quoting encoding.MattBlack85
Thanks to nedbatchelder for the report.
2014-02-15Improved fix for #18373 -- backward compatibilityGrzegorz Nosek
Commit 79558c78 cleaned up the (undocumented) interface of Resolver404 exception, which breaks compatibility with code messing with .args[0] directly. Revert the cleanup part and simply leave the fix itself.
2014-02-15Fixed #22047 -- detecting related_name clash with inheritanceChristopher Medrela
Thanks to mondone for fruitful colaboration.
2014-02-15Fixed #21912 -- Improved error message if a view returns None.Aaron France
Thanks brycenesbitt for the report.
2014-02-15Fixed #21765 -- Added support for comparing Context instancesMarek Wywiał
2014-02-15Fixed #18373 - improved handling of Resolver404s from viewsGrzegorz Nosek
When django.core.urlresolvers.resolve was called from a view, failed and the exception was propagated and rendered by technical_404_response, the URL mentioned on the page was the current URL instead of the URL passed to resolve(). Fixed by using the path attribute from the Resolver404 exception instead of request.path_info. Also cleaned up the exceptions to use standard named parameters instead of stuffing a dict in args[0]
2014-02-15Fixed #19299 -- Fixed Nullification of Foreign Keys To CharFieldsAlbert Wang
Thanks tunixman for the report and Baptiste Mispelon and Shai Berger for reviews.
2014-02-15Fixed #22018 -- Fixed checks for ModelAdmin.fields not handling sub-lists.Aaron France
Flatten a level of sublists before checking for duplicate fields. When given sublists such as: ```python class FooAdmin(admin.ModelAdmin): fields = ('one', ('one', 'two')) ``` The previous code did not correctly detect the duplicated 'one' field. Thanks to jwa for the report.
2014-02-14Fixed #22035 -- reordered migration operationsAnton Baklanov
Now AddField actions appear in operations list before AlterUniqueTogether actions. Thanks to SmileyChris for the report.
2014-02-14Fixed #21924 -- Added the ability to specify a reverse order for ↵Klemens Mantzos
admin_order_field. Thanks Klemens Mantzos for the report and initial patch.
2014-02-14Fixed #17942 -- Added a JsonResponse class to more easily create JSON ↵Lukasz Balcerzak
encoded responses. Thanks leahculver for the suggestion and Erik Romijn, Simon Charette, and Marc Tamlyn for the reviews.
2014-02-14Fixed #21177 -- Made resolve_url support relative URLs.Antoine Catton
This fixes redirecting to relative URLs with django.shortcuts.redirect.
2014-02-13Fixed #22030 -- Don't assume that all fields have a swappable_setting attribute.Baptiste Mispelon
2014-02-13Fixed #19496 -- Added truncatechars_html filter.Jeremy
Thanks esevece for the suggestion and Nick Sandford and Martin Warne for the inital work on the patch.
2014-02-13Removed test for migration check forgotten in ↵Baptiste Mispelon
7e941ba67ceab8a74ba50509d13ed4298f8305cd.
2014-02-12Fix my slightly hasty autodetector changesAndrew Godwin
2014-02-12Reworked the detection of local storages for the collectstatic command.Loic Bistuer
Before 4befb30 the detection was broken because we used isinstance against a LazyObject rather than against a Storage class. That commit fixed it by looking directly at the object wrapped by LazyObject. This could however be a problem to anyone who subclasses the collectstatic management Command and directly supplies a Storage class. Refs #21581.
2014-02-12Fixed #22025 -- Listing app followed by app.Model in dumpdata commandEli Bendersky
When invoked as follows: $ python manage.py dumpdata blogapp blogapp.Tag Django would throw a TypeError. This commit fixes the problem and provides a test.
2014-02-11Fixed #2445 -- Allowed limit_choices_to attribute to be a callable.Christopher Adams
ForeignKey or ManyToManyField attribute ``limit_choices_to`` can now be a callable that returns either a ``Q`` object or a dict. Thanks michael at actrix.gen.nz for the original suggestion.
2014-02-10Fixed #17673 -- Forbid field shadowing.Christopher Medrela
Thanks Anssi Kääriäinen for the suggestion.
2014-02-10Fixed #21371 -- Added the block.super to admin bodyclass blocks.julien 'pouete' Godin
Thanks Keryn Knight for the report.
2014-02-10Fixed #20784 -- Added inverse_match parameter to RegexValidator.Si Feng
2014-02-10Refactored RecursiveM2MTests into smaller pieces, refs #18586.Chris Bailey
2014-02-09Fixed #21763 -- Added an error msg for missing methods on ManyRelatedManager.Robert Stapenhurst
Attempting to add() and remove() an object related by a 'through' model now raises more descriptive AttributeErrors, in line with set and create().
2014-02-09Minor edits to new findstatic functionality; refs #19879.Tim Graham
Hopefully fixes a test failure on Jenkins.
2014-02-09Fixed #21382 - Added "has_original" to stacked inlines.Ryan Kaskel
Report and original patch from jrief.
2014-02-09Fixed #20780 -- Get rid of stale symlinks when using collectstatic.Jannis Leidel
Thanks to John Giannelos for the initial patch.
2014-02-09Fixed #19879 -- Have 'findstatic' says on which directories it searched the ↵Vajrasky Kok
relative paths. Added searched_locations in finders module. Added verbosity flag level 2 on 'findstatic' command that will output the directories on which it searched the relative paths. Reported by ccurvey. Initial patch by Jonas Svensson and Vajrasky Kok.
2014-02-09Fixed #21482 -- Uplifted restriction of collectstatic using symlink option ↵Jannis Leidel
in Windows NT 6. Original patch by Vajrasky Kok. Reviewed by Florian Apolloner, Aymeric Augustin.
2014-02-09Fixed #21969: Fix behaviour of initial_data with migrated appsAndrew Godwin
2014-02-09Fixed #21967: Added check for object in ModelFormMixin.get_form_kwargs.Ryan Kaskel
Thanks lagovas.lagovas at gmail.com for the report.
2014-02-09Fixed #21247 -- Made method_decorator play nicely with descriptorsMarc Tamlyn
When a method decorator was used in conjunction with a decorator implemented as a descriptor, method_decorator did not correctly respect the method binding. Thanks for Graham Dumpleton for the report and initial patch.
2014-02-09Fixed #21954: Raise nice error when serializing datetimes with timezonesAndrew Godwin
2014-02-09Removed unused imports + other flake8 fixes.Tim Graham
2014-02-09Fixed #21892: RunPython no longer accepts stringsAndrew Godwin
2014-02-09Merge pull request #2244 from mlavin/21856-migration-checksAndrew Godwin
Fixed #21856: Allow Empty DATABASES Setting
2014-02-09Merge pull request #1997 from dpwrussell/method_decorator_args_fixMarc Tamlyn
Used available_attrs in method_decorator
2014-02-08Fixed #21959 -- Handled Inf/NaN in widthratio tag.Aymeric Augustin
Thanks rmoe for the report and the patch.
2014-02-08Fixed #21674 -- Deprecated the import_by_path() function in favor of ↵Berker Peksag
import_string(). Thanks Aymeric Augustin for the suggestion and review.
2014-02-08Adding tests for check_migrations.mlavin
2014-02-08Added tests for LocalMemCache deadlocks. refs #20613 and refs #18541.Tim Graham
Thanks Zach Smith for the patch.
2014-02-08Fixed #21417 -- Expanded TEMPLATE_STRING_IF_INVALID in blocktransClaude Paroz
Thanks keturn for the reporti, Chris Medrela for details and Tim Graham for the review. Refs #19915.
2014-02-08Fixed #16192 -- Made unique error messages in ModelForm customizable.Loic Bistuer
Overriding the error messages now works for both unique fields, unique_together and unique_for_date. This patch changed the overriding logic to allow customizing NON_FIELD_ERRORS since previously only fields' errors were customizable. Refs #20199. Thanks leahculver for the suggestion.