1
0
mirror of https://github.com/django/django.git synced 2024-12-26 11:06:07 +00:00
django/tests/regressiontests
Jacob Kaplan-Moss bb15cee58a Made a bunch of improvements to admin actions. Be warned: this includes one minor but BACKWARDS-INCOMPATIBLE change.
These changes are:

    * BACKWARDS-INCOMPATIBLE CHANGE: action functions and action methods now share the same signature: `(modeladmin, request, queryset)`. Actions defined as methods stay the same, but if you've defined an action as a standalone function you'll now need to add that first `modeladmin` argument.
    * The delete selected action is now a standalone function registered site-wide; this makes disabling it easy.
    * Fixed #10596: there are now official, documented `AdminSite` APIs for dealing with actions, including a method to disable global actions. You can still re-enable globally-disabled actions on a case-by-case basis.
    * Fixed #10595: you can now disable actions for a particular `ModelAdmin` by setting `actions` to `None`.
    * Fixed #10734: actions are now sorted (by name).
    * Fixed #10618: the action is now taken from the form whose "submit" button you clicked, not arbitrarily the last form on the page.
    * All of the above is documented and tested.

git-svn-id: http://code.djangoproject.com/svn/django/trunk@10408 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2009-04-06 20:23:33 +00:00
..
admin_ordering
admin_registration Fixed #10505: added support for bulk admin actions, including a globally-available "delete selected" action. See the documentation for details. 2009-03-23 20:22:56 +00:00
admin_scripts
admin_validation
admin_views Made a bunch of improvements to admin actions. Be warned: this includes one minor but BACKWARDS-INCOMPATIBLE change. 2009-04-06 20:23:33 +00:00
admin_widgets Fixed #10537: Fixed the foreign key add-another link in list_editable. Thanks, Alex and jezdez. 2009-03-30 23:16:34 +00:00
aggregation_regress Fixed #10670: fixed reusing QuerySets previously used in a filter expression. Thanks, Alex Gaynor. 2009-04-02 01:49:12 +00:00
app_loading Fixed #10526 -- More fixes when specifying installed apps using "foo.*". 2009-03-18 00:59:40 +00:00
auth_backends
backends Fixed #6064 -- Added the connection_created signal for when a database connection is created. 2009-03-29 23:15:58 +00:00
bug639 Made a set of small test changes to avoid leaving temp files hanging around after running the test suite. First, fixed a couple of places where temp dirs were (or could be) created without later being deleted. Second, added a missing close() before unlink() since Windows raises an error on an attempt to remove an open file. Finally, in the file_uploads tests, avoided opening-by-name temporary files that we already have a descriptor for. Doing additional opens seems to run afoul of the Windows issue with deleting open files, so it generally works better to just seek back to 0 instead of calling open multiple times. 2009-04-05 20:59:20 +00:00
bug8245
cache Fixed #10016: the cache middleware no longer vomits when handed long URLs. Thanks, Matt Croydon. 2009-04-01 18:19:32 +00:00
comment_tests Fixed #9282: added a generic comment moderation toolkit. See the documentation for details. 2009-03-23 21:07:02 +00:00
conditional_processing Fixed #10681 -- Work around (by ignoring) invalid ETag headers. 2009-04-03 06:59:34 +00:00
context_processors
custom_columns_regress
custom_managers_regress Fixed #2698 -- Fixed deleting in the presence of custom managers. 2009-03-20 03:57:12 +00:00
datastructures Fixed #8847, #10370: added some missing methods to MultiValueDict after [8399]. Thanks, James Turk and rfk. 2009-03-31 06:30:07 +00:00
datatypes Fixed #10238: coerce TextField values to unicode in the oracle backend. 2009-03-13 19:57:00 +00:00
dateformat
datetime_safe
db_typecasts
decorators Fixed #9474: user_passes_test may now be applied multiple times. 2009-04-01 16:17:38 +00:00
defaultfilters Fixed #10513: floatformat now works with floatish things, not just real floats. Thanks, Alex. 2009-03-31 18:17:21 +00:00
defer_regress Fixed a problem when computing deferred fields on multiple related models. 2009-04-04 05:35:01 +00:00
dispatch
expressions_regress Fixed #10161 -- Modified evaluation of query expressions to allow for operators that take the form of functions. This is mostly for the benefit of Oracle, but it should prove useful later on. Thanks to Ian for the report and feedback on the fix. 2009-02-24 11:15:31 +00:00
extra_regress Fixed #10256 -- Corrected the interaction of extra(select=) with values() and values_list() where an explicit list of columns is requested. 2009-02-16 12:28:37 +00:00
file_storage Made a set of small test changes to avoid leaving temp files hanging around after running the test suite. First, fixed a couple of places where temp dirs were (or could be) created without later being deleted. Second, added a missing close() before unlink() since Windows raises an error on an attempt to remove an open file. Finally, in the file_uploads tests, avoided opening-by-name temporary files that we already have a descriptor for. Doing additional opens seems to run afoul of the Windows issue with deleting open files, so it generally works better to just seek back to 0 instead of calling open multiple times. 2009-04-05 20:59:20 +00:00
file_uploads Made a set of small test changes to avoid leaving temp files hanging around after running the test suite. First, fixed a couple of places where temp dirs were (or could be) created without later being deleted. Second, added a missing close() before unlink() since Windows raises an error on an attempt to remove an open file. Finally, in the file_uploads tests, avoided opening-by-name temporary files that we already have a descriptor for. Doing additional opens seems to run afoul of the Windows issue with deleting open files, so it generally works better to just seek back to 0 instead of calling open multiple times. 2009-04-05 20:59:20 +00:00
fixtures_regress
forms Made a set of small test changes to avoid leaving temp files hanging around after running the test suite. First, fixed a couple of places where temp dirs were (or could be) created without later being deleted. Second, added a missing close() before unlink() since Windows raises an error on an attempt to remove an open file. Finally, in the file_uploads tests, avoided opening-by-name temporary files that we already have a descriptor for. Doing additional opens seems to run afoul of the Windows issue with deleting open files, so it generally works better to just seek back to 0 instead of calling open multiple times. 2009-04-05 20:59:20 +00:00
formwizard Fixed #9473: FormWizard now works with NullBooleanFields. As a bonus, we now have the beginnings of a test suite for FormWizard. Thanks, Keith Bussell. 2009-04-01 14:13:43 +00:00
generic_inline_admin Fixed #10522: accept tuples in generic_inlineformset_factor(exclude). Thanks, mk. 2009-04-03 20:03:46 +00:00
generic_relations_regress Fixed #9546: GenericRelations inherited from base models no longer query using the wrong content type. 2009-04-03 19:52:14 +00:00
get_or_create_regress
httpwrappers Fixed #10184: QueryDicts with multiple values can now be safely pickled. Thanks, Alex Gaynor. 2009-03-31 05:14:13 +00:00
humanize
i18n
initial_sql_regress
inline_formsets Replace test use of assertTrue with failUnless. No matter how many times we try, Python 2.3 still doesn't recognize assertTrue. 2009-04-04 17:51:35 +00:00
introspection Fixed up the introspection code and tests added for #9779 to run under Python 2.3, which has neither set nor rsplit. 2009-04-04 19:03:55 +00:00
m2m_regress
m2m_through_regress
mail Fixed #9214: EmailMessage now respects the From header instead of blindly using from_email. Thanks, Tai Lee. 2009-02-16 20:47:39 +00:00
managers_regress
many_to_one_regress Fixed #9649 -- Better error handling in model creation. 2009-03-06 04:51:05 +00:00
max_lengths
middleware
model_fields Fixed #5903 -- DecimalField.get_default() now correctly returns a Decimal object when the model instance was not retrieved from the database. Thanks Justin Driscoll and pigletto. 2009-02-11 20:13:17 +00:00
model_forms_regress
model_inheritance_regress Fixed #10406 -- Fixed some problems with model inheritance and pk fields. 2009-03-04 07:21:14 +00:00
model_inheritance_select_related
model_regress Refs #10443: Added Oracle to the #10443 regression test exemption, since we don't yet support it. 2009-03-10 22:48:42 +00:00
modeladmin
null_fk
null_fk_ordering Fixed #10589 -- Removed duplicated model definition in null_fk_ordering regression test. Thanks to Julien Phalip for the report. 2009-03-24 11:35:48 +00:00
null_queries Improved table join handling for comparisons against NULL. 2009-03-06 02:02:09 +00:00
one_to_one_regress Improved table join handling for comparisons against NULL. 2009-03-06 02:02:09 +00:00
pagination_regress
queries Fixed #9926 -- Fixes for some select_related() situations. 2009-03-24 03:59:38 +00:00
requests
reverse_single_related
select_related_regress Fixed #9926 -- Fixes for some select_related() situations. 2009-03-24 03:59:38 +00:00
serializers_regress Corrected code in serializers_regress testcase so that, in the case where an exception has been raised, rollback is called before attempting to leave transaction management. With the old code the original exception (IntegrityError on InnoDB) was getting hidden by a transaction management error resulting from attempting to leave transaction management with a pending commit/rollback. 2009-01-18 20:54:42 +00:00
string_lookup
syndication
templates Fixed the test added for #9005 to use the e.args[0] instead of e.message. Exceptions didn't have 'message' before Python 2.5, and it was deprecated as of Python 2.6. args[0] works without error or DeprecationWarning from Python 2.3 through 2.6. 2009-04-04 19:34:52 +00:00
test_client_regress Fixed #10553 -- Corrected several uses of URLconf in documentation and comments, according to the Django style guide. Based on patch from rduffield. 2009-03-31 16:07:07 +00:00
test_utils
text Added consistent support for double- and single-quote delimiters in templates. 2009-03-23 09:40:25 +00:00
urlpatterns_reverse Fixed #10065 -- Corrected an error message when an empty urlpattern object is provided. Thanks to Matthew Flanagan for the patch. 2009-04-04 06:54:56 +00:00
utils
views Fixed #7529: added a FILES section to the debug view. As a bonus, we've now got 2009-03-31 17:10:06 +00:00
__init__.py