django/tests/regressiontests
Ramiro Morales f6e38f3800 Fixed #5494, #10765, #14924 -- Modified the order in which translations are read when composing the final translation to offer at runtime.
This is slightly backward-incompatible (could result in changed final translations for literals appearing multiple times in different .po files but with different translations).

Translations are now read in the following order (from lower to higher priority):

For the 'django' gettext domain:

 * Django translations
 * INSTALLED_APPS apps translations (with the ones listed first having higher priority)
 * settings/project path translations (deprecated, see below)
 * LOCALE_PATHS translations (with the ones listed first having higher priority)

For the 'djangojs' gettext domain:

 * Python modules whose names are passed to the javascript_catalog view
 * LOCALE_PATHS translations (with the ones listed first having higher priority, previously they weren't included)

Also, automatic loading of translations from the 'locale' subdir of the settings/project path is now deprecated.

Thanks to vanschelven, vbmendes and an anonymous user for reporting issues, to vanschelven, Claude Paroz and an anonymous contributor for their initial work on fixes and to Jannis  Leidel and Claude for review and discussion.

git-svn-id: http://code.djangoproject.com/svn/django/trunk@15441 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2011-02-07 18:48:40 +00:00
..
admin_changelist Fixed #14982 -- Ensure that EMPTY_CHANGELIST_VALUE is honored for nullable foreign keys. Thanks to marcob for the report and fix, and to sontek for the test case. 2011-01-24 07:01:00 +00:00
admin_inlines Removed all usages of deprecated TestCase methods (self.fail*). This removed most of the Warnings emitted (with -Wall) during the test suite. 2010-12-04 07:28:12 +00:00
admin_ordering Fixed #13862 -- Added an ordering option to InlineModelAdmin and cleaned up documentation for it a bit. Thanks, Simon Meers, rasca and cogat. 2010-12-12 22:56:01 +00:00
admin_registration
admin_scripts Fixed #15112 -- Ensure that IPv6 addresses are correctly displayed in the admin. Thanks to oxy for the report, and Łukasz Rekucki for the test case. 2011-01-27 03:15:12 +00:00
admin_util
admin_validation
admin_views Fixed #14895 -- Ensure that USE_THOUSAND_SEPARATOR doesn't break the delete confirmation page. Thanks to Tuttle for the report, and Julien Phalip for the patch. 2011-02-06 06:16:03 +00:00
admin_widgets Modified wrong expected ClearableFileInput rendering output in a couple of additional tests after fix introduced in [15426]. Refs #14984. 2011-02-05 20:06:49 +00:00
aggregation_regress Fixed #13159 -- properly quote aggregates in order_by. 2011-01-26 03:48:15 +00:00
app_loading Removed all usages of deprecated TestCase methods (self.fail*). This removed most of the Warnings emitted (with -Wall) during the test suite. 2010-12-04 07:28:12 +00:00
backends Added a regression test for r14781. Also fixed a bug where connection.vendor was effectively always 'unknown', causing all vendor-specific tests to be skipped. 2010-12-03 18:15:54 +00:00
bash_completion
bug639
bug8245 Removed all usages of deprecated TestCase methods (self.fail*). This removed most of the Warnings emitted (with -Wall) during the test suite. 2010-12-04 07:28:12 +00:00
builtin_server Removed all usages of deprecated TestCase methods (self.fail*). This removed most of the Warnings emitted (with -Wall) during the test suite. 2010-12-04 07:28:12 +00:00
cache Fixed #13283 -- Corrected CACHE_MIDDLEWARE_ANONYMOUS_ONLY's bad habit of setting Vary: Cookie on all responses and destroying cache efficiency. Thanks to natrius for the fix. 2011-02-01 00:20:31 +00:00
comment_tests Fixed #14176 -- Added forwards compatibility to the legacy syndication feed view. This allows class-based feeds to be deployed using the old-style feed view, as long as the feed requires no arguments (i.e., get_object returns None). Thanks to psychcf for the report, cwhaines for the investigation, and Andrew Godwin for the assist. 2011-01-13 14:51:34 +00:00
conditional_processing
context_processors Fixed #14389, #9666 -- Started the migration path to make the first argument to url and ssi template tags syntactically consistent with other tags. Thanks to Sean Brant for the draft patch. 2010-11-20 06:22:28 +00:00
csrf_tests
custom_columns_regress
custom_managers_regress
datatypes
dates
db_typecasts Fixed #14453 -- Changed handling of microseconds part in typecast_timestamp() DB backend helper function to be more correct. Thanks philipn for the report and fix. 2010-11-21 15:08:53 +00:00
decorators
defaultfilters Fixed #14240 -- Enabled localization for the filesize filter. Thanks to David Danier for the report and patch. 2011-01-24 08:16:09 +00:00
defer_regress
delete_regress Fixed #11319 - Added lookup support for ForeignKey.to_field. Also reverted no-longer-needed model formsets workaround for lack of such support from r10756. Thanks Russell and Alex for review. 2011-01-25 03:14:28 +00:00
dispatch
expressions_regress Fixed #10154: Allow combining F expressions with timedelta values. 2010-12-22 03:34:04 +00:00
extra_regress
file_storage Fixed #15181 -- Ensure that special characters are escaped when querying for the URL of an uploaded file. Thanks to e.generalov for the report and patch. 2011-02-04 14:43:10 +00:00
file_uploads Removed all usages of deprecated TestCase methods (self.fail*). This removed most of the Warnings emitted (with -Wall) during the test suite. 2010-12-04 07:28:12 +00:00
fixtures_regress Made a transaction test optional unless transactions are supported. 2011-01-26 14:49:50 +00:00
forms Modified wrong expected ClearableFileInput rendering output in a couple of additional tests after fix introduced in [15426]. Refs #14984. 2011-02-05 20:06:49 +00:00
formwizard
generic_inline_admin Removed all usages of deprecated TestCase methods (self.fail*). This removed most of the Warnings emitted (with -Wall) during the test suite. 2010-12-04 07:28:12 +00:00
generic_relations_regress
generic_views Fixed #14711 -- Corrected the calculation for the previous month in generic date views. Thanks to msundstr for the report and patch. 2011-02-06 06:31:52 +00:00
get_or_create_regress Fix wrong attribute name in [15156]. Thanks to Alex Gaynor for spotting this. 2011-01-10 13:44:35 +00:00
handlers Fixed #11193 -- WSGI handler not properly handling lock on error in load_middleware. Thanks to Phillip Sitbon. 2011-01-14 23:18:21 +00:00
httpwrappers Rationalised CompatCookie/SimpleCookie into single SimpleCookie class with all fixes. 2011-01-24 20:35:46 +00:00
humanize Fixed #4976 -- Stopped humanize template tags to raise a TypeError if passed a value of ``None``. Thanks, Simon G. and Adam Vandenberg. 2010-12-21 15:07:43 +00:00
i18n Fixed #5494, #10765, #14924 -- Modified the order in which translations are read when composing the final translation to offer at runtime. 2011-02-07 18:48:40 +00:00
initial_sql_regress Refs #14661 -- Clarified the handling of initial data injected via custom SQL. 2011-01-18 16:43:01 +00:00
inline_formsets Removed all usages of deprecated TestCase methods (self.fail*). This removed most of the Warnings emitted (with -Wall) during the test suite. 2010-12-04 07:28:12 +00:00
inspectdb Fixed #15170 -- Skip the inspectdb test under MySQL/MyISAM, because it can't differentiate a foreign key from an integer. 2011-02-01 14:42:52 +00:00
introspection
locale/de/LC_MESSAGES Fixed #5494, #10765, #14924 -- Modified the order in which translations are read when composing the final translation to offer at runtime. 2011-02-07 18:48:40 +00:00
localflavor Fixed the rest of the US localflavor tests that were forgotten in r15058. Refs r15029. 2010-12-31 14:38:19 +00:00
m2m_regress
m2m_through_regress Fixed #15161 - Corrected handling of ManyToManyField with through table using to_field on its ForeignKeys. Thanks to adehnert for the report. 2011-01-26 19:10:08 +00:00
mail Fixed #15042 -- Ensured that email addresses without a domain can still be mail recipients. Patch also improves the IDN handling introduced by r15006, and refactors the test suite to ensure even feature coverage. Thanks to net147 for the report, and to Łukasz Rekucki for the awesome patch. 2011-01-15 05:55:24 +00:00
managers_regress
many_to_one_regress
max_lengths
middleware Removed all usages of deprecated TestCase methods (self.fail*). This removed most of the Warnings emitted (with -Wall) during the test suite. 2010-12-04 07:28:12 +00:00
middleware_exceptions Fixed #15083 -- Corrected the order of TemplateResponse middleware handling, ensuring that custom URLConfs are valid, and that ResponseMiddleware is invoked if the TemplateResponseMiddleware causes errors. Thanks to Sayane for the report. 2011-01-16 15:38:03 +00:00
model_fields
model_forms_regress Fixed the ModelMultipleChoiceFieldTests to pass even on DB backends that do not reuse pk values after rollback. 2010-12-18 17:37:19 +00:00
model_formsets_regress Fixed #15167 -- Ensure that non-form errors are always part of an ErrorList. Thanks to Harm Geerts for the report and patch. 2011-02-05 06:33:16 +00:00
model_inheritance_regress Fixed #14423 -- corrected incorrect SQL being generated when a nullable, inherited field was used in an exclude. Thanks to PhiR_42 for the patch. 2010-11-17 16:46:50 +00:00
model_inheritance_select_related
model_regress Fixed a failing test caused by [14614]. 2010-11-19 03:42:20 +00:00
modeladmin Fixed #3400 -- Support for lookup separator with list_filter admin option. Thanks to DrMeers and vitek_pliska for the patch! 2010-11-21 19:29:15 +00:00
multiple_database Enhanced slightly the tests added in r15185 to demonstrate that #14948 doesn't affect trunk. Refs #14948. Thanks Harm Geerts. 2011-01-15 00:15:39 +00:00
null_fk
null_fk_ordering
null_queries
one_to_one_regress
pagination_regress
queries Fixed #11319 - Added lookup support for ForeignKey.to_field. Also reverted no-longer-needed model formsets workaround for lack of such support from r10756. Thanks Russell and Alex for review. 2011-01-25 03:14:28 +00:00
queryset_pickle
requests Fixed #15018 -- Corrected the handling of LimitedStream under one edge case involving size restricted buffers and newlines. Thanks to xjdrew for the report, and aaugustin for the patch. 2011-01-16 07:31:35 +00:00
reverse_single_related
select_related_onetoone
select_related_regress
serializers_regress Reverting r14994 (at request of SmileyChris) because of some backwards compatibility issues that need to be resolved. 2010-12-21 06:05:40 +00:00
servers
settings_tests Fixed #6218 -- Made MEDIA_URL and STATIC_URL require a trailing slash to ensure there is a consistent way to combine paths in templates. Thanks to Michael Toomim, Chris Heisel and Chris Beaven. 2011-01-02 01:33:11 +00:00
signals_regress
sites_framework
special_headers
staticfiles_tests Fixed a few test docstrings and removed an unused import in staticfiles. 2011-02-01 20:39:40 +00:00
string_lookup
syndication
templates Fixed #14046 -- Made {% include %} behave the same, regardless of whether the template included is named by variable or constant string. Thanks to defcube for the report, and George Karpenkov for the draft patch. 2011-02-04 17:10:21 +00:00
test_client_regress Fixed #14753 -- Fixed the test client to not raise an AssertionError when request.raw_post_data is accessed from a view it has fetched with GET. Thanks zimnyx for the report and ojii for the patch. 2011-01-21 01:04:05 +00:00
test_runner Fixed #15029 -- Moved to database backends the ability to decide if two DATABASES items are different when creating temporary databases for tests. 2011-02-02 14:02:14 +00:00
test_utils Fixed #14774 -- the test client and assertNumQueries didn't work well together. Thanks to Jonas Obrist for the initial patch. 2011-01-20 04:47:47 +00:00
text Fixed #5672 -- Allow the separator in the get_text_list utility function to be translated. Thanks, Claude. 2010-12-12 22:53:49 +00:00
urlpatterns_reverse Fixed #14389, #9666 -- Started the migration path to make the first argument to url and ssi template tags syntactically consistent with other tags. Thanks to Sean Brant for the draft patch. 2010-11-20 06:22:28 +00:00
utils Fixed #14698 -- Ensure that module_has_sumodule doesn't mistake a cache miss for an existent package. Thanks to Łukasz Rekucki for the report and patch, and to shields for the test case. 2011-01-30 13:10:47 +00:00
views Fixed #5494, #10765, #14924 -- Modified the order in which translations are read when composing the final translation to offer at runtime. 2011-02-07 18:48:40 +00:00
__init__.py