1
0
mirror of https://github.com/django/django.git synced 2024-12-26 02:56:25 +00:00
django/tests/regressiontests
Russell Keith-Magee 70a0de37d1 Fixed #3011 -- Added swappable auth.User models.
Thanks to the many people that contributed to the development and review of
this patch, including (but not limited to) Jacob Kaplan-Moss, Anssi
Kääriäinen, Ramiro Morales, Preston Holmes, Josh Ourisman, Thomas Sutton,
and Roger Barnes, as well as the many, many people who have contributed to
the design discussion around this ticket over many years.

Squashed commit of the following:

commit d84749a0f0
Merge: 531e771 7c11b1a
Author: Russell Keith-Magee <russell@keith-magee.com>
Date:   Wed Sep 26 18:37:04 2012 +0800

    Merge remote-tracking branch 'django/master' into t3011

commit 531e7715da
Merge: 29d1abb 1f84b04
Author: Russell Keith-Magee <russell@keith-magee.com>
Date:   Wed Sep 26 07:09:23 2012 +0800

    Merged recent trunk changes.

commit 29d1abbe35
Merge: 8a527dd 54c81a1
Author: Russell Keith-Magee <russell@keith-magee.com>
Date:   Mon Sep 24 07:49:46 2012 +0800

    Merge remote-tracking branch 'django/master' into t3011

commit 8a527dda13
Author: Russell Keith-Magee <russell@keith-magee.com>
Date:   Mon Sep 24 07:48:05 2012 +0800

    Ensure sequences are reset correctly in the presence of swapped models.

commit e2b6e22f29
Author: Russell Keith-Magee <russell@keith-magee.com>
Date:   Sun Sep 23 17:53:05 2012 +0800

    Modifications to the handling and docs for auth forms.

commit 98aba856b5
Author: Russell Keith-Magee <russell@keith-magee.com>
Date:   Sun Sep 23 15:28:57 2012 +0800

    Improved error handling and docs for get_user_model()

commit 0229209c84
Merge: 6494bf9 8599f64
Author: Russell Keith-Magee <russell@keith-magee.com>
Date:   Sun Sep 23 14:50:11 2012 +0800

    Merged recent Django trunk changes.

commit 6494bf91f2
Author: Russell Keith-Magee <russell@keith-magee.com>
Date:   Mon Sep 17 21:38:44 2012 +0800

    Improved validation of swappable model settings.

commit 5a04cde342
Author: Russell Keith-Magee <russell@keith-magee.com>
Date:   Mon Sep 17 07:15:14 2012 +0800

    Removed some unused imports.

commit ffd535e413
Author: Russell Keith-Magee <russell@keith-magee.com>
Date:   Sun Sep 16 20:31:28 2012 +0800

    Corrected attribute access on for get_by_natural_key

commit 913e1ac84c
Author: Russell Keith-Magee <russell@keith-magee.com>
Date:   Sun Sep 16 20:12:34 2012 +0800

    Added test for proxy model safeguards on swappable models.

commit 280bf19e94
Merge: dbb3900 935a863
Author: Russell Keith-Magee <russell@keith-magee.com>
Date:   Sun Sep 16 18:16:49 2012 +0800

    Merge remote-tracking branch 'django/master' into t3011

commit dbb3900775
Author: Russell Keith-Magee <russell@keith-magee.com>
Date:   Sun Sep 16 18:09:27 2012 +0800

    Fixes for Python 3 compatibility.

commit dfd72131d8
Author: Russell Keith-Magee <russell@keith-magee.com>
Date:   Sun Sep 16 15:54:30 2012 +0800

    Added protection against proxying swapped models.

commit abcb027190
Author: Russell Keith-Magee <russell@keith-magee.com>
Date:   Sun Sep 16 15:11:10 2012 +0800

    Cleanup and documentation of AbstractUser base class.

commit a9491a8776
Merge: fd8bb4e 08bcb4a
Author: Russell Keith-Magee <russell@keith-magee.com>
Date:   Sun Sep 16 14:46:49 2012 +0800

    Merge commit '08bcb4aec1ed154cefc631b8510ee13e9af0c19d' into t3011

commit fd8bb4e3e4
Author: Russell Keith-Magee <russell@keith-magee.com>
Date:   Sun Sep 16 14:20:14 2012 +0800

    Documentation improvements coming from community review.

commit b550a6d06d
Author: Russell Keith-Magee <russell@keith-magee.com>
Date:   Sun Sep 16 13:52:47 2012 +0800

    Refactored skipIfCustomUser into the contrib.auth tests.

commit 52a02f1110
Author: Russell Keith-Magee <russell@keith-magee.com>
Date:   Sun Sep 16 13:46:10 2012 +0800

    Refactored common 'get' pattern into manager method.

commit b441a6bbc7
Author: Russell Keith-Magee <russell@keith-magee.com>
Date:   Sun Sep 16 13:41:33 2012 +0800

    Added note about backwards incompatible change to admin login messages.

commit 08bcb4aec1
Author: Anssi Kääriäinen <akaariai@gmail.com>
Date:   Sat Sep 15 18:30:33 2012 +0300

    Splitted User to AbstractUser and User

commit d9f5e5addb
Author: Anssi Kääriäinen <akaariai@gmail.com>
Date:   Sat Sep 15 18:30:02 2012 +0300

    Reworked REQUIRED_FIELDS + create_user() interaction

commit 579f152e4a
Merge: 9184972 93e6733
Author: Russell Keith-Magee <russell@keith-magee.com>
Date:   Sat Sep 15 20:18:37 2012 +0800

    Merge remote-tracking branch 'django/master' into t3011

commit 918497218c
Author: Russell Keith-Magee <russell@keith-magee.com>
Date:   Sat Sep 15 20:18:19 2012 +0800

    Deprecate AUTH_PROFILE_MODULE and get_profile().

commit 334cdfc1bb
Author: Russell Keith-Magee <russell@keith-magee.com>
Date:   Sat Sep 15 20:00:12 2012 +0800

    Added release notes for new swappable User feature.

commit 5d7bb22e8d
Author: Russell Keith-Magee <russell@keith-magee.com>
Date:   Sat Sep 15 19:59:49 2012 +0800

    Ensure swapped models can't be queried.

commit 57ac6e3d32
Merge: f2ec915 abfba3b
Author: Russell Keith-Magee <russell@keith-magee.com>
Date:   Sat Sep 15 14:31:54 2012 +0800

    Merge remote-tracking branch 'django/master' into t3011

commit f2ec915b20
Merge: 1952656 5e99a3d
Author: Russell Keith-Magee <russell@keith-magee.com>
Date:   Sun Sep 9 08:29:51 2012 +0800

    Merge remote-tracking branch 'django/master' into t3011

commit 19526563b5
Merge: 2c5e833 c4aa26a
Author: Russell Keith-Magee <russell@keith-magee.com>
Date:   Sun Sep 9 08:22:26 2012 +0800

    Merge recent changes from master.

commit 2c5e833a30
Author: Russell Keith-Magee <russell@keith-magee.com>
Date:   Sun Sep 9 07:53:46 2012 +0800

    Corrected admin_views tests following removal of the email fallback on admin logins.

commit 20d1892491
Author: Russell Keith-Magee <russell@keith-magee.com>
Date:   Sun Sep 9 01:00:37 2012 +0800

    Added conditional skips for all tests dependent on the default User model

commit 40ea8b8882
Author: Russell Keith-Magee <russell@keith-magee.com>
Date:   Sat Sep 8 23:47:02 2012 +0800

    Added documentation for REQUIRED_FIELDS in custom auth.

commit e6aaf65970
Author: Russell Keith-Magee <russell@keith-magee.com>
Date:   Sat Sep 8 23:20:02 2012 +0800

    Added first draft of custom User docs.

    Thanks to Greg Turner for the initial text.

commit 75118bd242
Author: Thomas Sutton <me@thomas-sutton.id.au>
Date:   Mon Aug 20 11:17:26 2012 +0800

    Admin app should not allow username discovery

    The admin app login form should not allow users to discover the username
    associated with an email address.

commit d088b3af58
Author: Thomas Sutton <me@thomas-sutton.id.au>
Date:   Mon Aug 20 10:32:13 2012 +0800

    Admin app login form should use swapped user model

commit 7e82e83d67
Merge: e29c010 39aa890
Author: Russell Keith-Magee <russell@keith-magee.com>
Date:   Fri Sep 7 23:45:03 2012 +0800

    Merged master changes.

commit e29c010beb
Merge: 8e3fd70 30bdf22
Author: Russell Keith-Magee <russell@keith-magee.com>
Date:   Mon Aug 20 13:12:57 2012 +0800

    Merge remote-tracking branch 'django/master' into t3011

commit 8e3fd703d0
Merge: 507bb50 26e0ba0
Author: Russell Keith-Magee <russell@keith-magee.com>
Date:   Mon Aug 20 13:09:09 2012 +0800

    Merged recent changes from trunk.

commit 507bb50a92
Author: Russell Keith-Magee <russell@keith-magee.com>
Date:   Mon Jun 4 20:41:37 2012 +0800

    Modified auth app so that login with alternate auth app is possible.

commit dabe362836
Author: Russell Keith-Magee <russell@keith-magee.com>
Date:   Mon Jun 4 20:10:51 2012 +0800

    Modified auth management commands to handle custom user definitions.

commit 7cc0baf89d
Author: Russell Keith-Magee <russell@keith-magee.com>
Date:   Mon Jun 4 14:17:28 2012 +0800

    Added model Meta option for swappable models, and made auth.User a swappable model
2012-09-26 18:48:09 +08:00
..
admin_changelist Fixed #18072 -- Made more admin links use reverse() instead of hard-coded relative URLs. 2012-09-24 22:02:59 -03:00
admin_custom_urls Fixed #18072 -- Made more admin links use reverse() instead of hard-coded relative URLs. 2012-09-24 22:02:59 -03:00
admin_filters [py3k] Silence many warnings while running the tests. 2012-09-07 13:17:34 -04:00
admin_inlines Moved the admin inline JS to new JS files for cleanliness. 2012-09-08 15:09:37 -04:00
admin_ordering
admin_registration
admin_scripts Fixed #18545 -- Make the 'no DJANGO_SETTINGS_MODULE' error message more useful.Thanks Nick Coghlan for the report, and Malcolm Tredinnick for review. 2012-09-08 14:26:33 -06:00
admin_util Replaced many smart_bytes by force_bytes 2012-08-29 11:20:32 +02:00
admin_validation [py3] Refactored __unicode__ to __str__. 2012-08-12 14:44:40 +02:00
admin_views Fixed #3011 -- Added swappable auth.User models. 2012-09-26 18:48:09 +08:00
admin_widgets [py3] Refactored __unicode__ to __str__. 2012-08-12 14:44:40 +02:00
aggregation_regress Fixed #13844 -- Avoid converting unknown db values to float 2012-08-12 21:52:52 +03:00
app_loading
backends Fixed #18790 -- Encoded database password on Python 2 2012-09-12 10:16:49 +02:00
bash_completion [py3] Used compatible imports of StringIO. 2012-08-08 14:50:01 +02:00
bug639
bug8245
builtin_server [py3] Ported django.core.servers. 2012-08-16 13:01:16 +02:00
bulk_create Fixed #17788 -- Added batch_size argument to qs.bulk_create() 2012-07-17 15:24:41 +03:00
cache [py3k] Silence many warnings while running the tests. 2012-09-07 13:17:34 -04:00
comment_tests Remove an outdated import inadvertently introduced in tests. 2012-09-08 18:22:03 -06:00
conditional_processing [py3] Fixed conditional_processing tests 2012-08-14 23:35:12 +02:00
context_processors
createsuperuser [py3] Used compatible imports of StringIO. 2012-08-08 14:50:01 +02:00
csrf_tests [py3] Made csrf context processor return Unicode 2012-08-13 11:54:21 +02:00
custom_columns_regress [py3] Refactored __unicode__ to __str__. 2012-08-12 14:44:40 +02:00
custom_managers_regress [py3] Refactored __unicode__ to __str__. 2012-08-12 14:44:40 +02:00
datatypes [py3] Refactored __unicode__ to __str__. 2012-08-12 14:44:40 +02:00
dates [py3] Refactored __unicode__ to __str__. 2012-08-12 14:44:40 +02:00
db_typecasts [py3] Fixed access to dict keys/values/items. 2012-08-07 12:00:22 +02:00
decorators [py3] Various minor syntax fixes in the test suite 2012-08-11 23:23:31 +02:00
defaultfilters [py3] Refactored __unicode__ to __str__. 2012-08-12 14:44:40 +02:00
defer_regress Fixed #17485 regression -- only + select_related interaction 2012-09-16 22:58:40 +03:00
delete_regress
dispatch [py3] Fixed dispatch tests 2012-08-15 18:19:21 +02:00
expressions_regress [py3] Refactored __unicode__ to __str__. 2012-08-12 14:44:40 +02:00
extra_regress [py3] Refactored __unicode__ to __str__. 2012-08-12 14:44:40 +02:00
file_storage Fixed #18947 -- Don't make uploaded files executeable by default. 2012-09-17 22:53:10 +02:00
file_uploads Removed another usage of the bear "except:" (rawr!). 2012-09-07 15:34:48 -04:00
fixtures_regress Cleaned up several test cases, to better isolate state. 2012-09-07 13:47:12 -04:00
forms Fixed #18982 - Caught TypeError in DateField.clean 2012-09-23 13:27:01 +02:00
generic_inline_admin Fixed the generic_inline_admin tests for python3. 2012-08-15 23:12:08 -04:00
generic_relations_regress [py3] Refactored __unicode__ to __str__. 2012-08-12 14:44:40 +02:00
generic_views Fixed #16218 -- date_list order in generic CBVs. 2012-09-22 11:47:34 +02:00
get_or_create_regress
handlers Removed many uses of bare "except:", which were either going to a) silence real issues, or b) were impossible to hit. 2012-09-07 15:08:07 -04:00
httpwrappers Fixed #18916 -- Allowed non-ASCII headers. 2012-09-07 19:08:57 -04:00
i18n Fixed tests that I broke a few commits ago. 2012-09-07 14:01:46 -04:00
initial_sql_regress Re-added Windows line ending stripped in previous commit 2012-07-21 15:38:28 +02:00
inline_formsets [py3k] Silence many warnings while running the tests. 2012-09-07 13:17:34 -04:00
inspectdb Fixed #18843 -- Replaced more special chars in column names (inspectdb) 2012-08-23 22:59:45 +02:00
introspection Fixed #5725 -- Fixed varchar column size introspection for MySQL 2012-08-30 19:28:13 +02:00
localflavor [py3k] Silence many warnings while running the tests. 2012-09-07 13:17:34 -04:00
logging_tests Called parent __init__ in test logging handler 2012-09-24 22:42:58 +02:00
m2m_regress [py3k] Silence many warnings while running the tests. 2012-09-07 13:17:34 -04:00
m2m_through_regress [py3] Fixed __unicode__ methods missed in d4a0b278 2012-08-17 14:11:23 +02:00
mail Fixed #18861 -- Triggered message validation with locmem email backend 2012-09-22 15:17:13 +02:00
managers_regress [py3] Refactored __unicode__ to __str__. 2012-08-12 14:44:40 +02:00
many_to_one_regress [py3k] Silence many warnings while running the tests. 2012-09-07 13:17:34 -04:00
max_lengths
middleware [py3] Fixed middleware tests. 2012-08-15 22:42:18 +02:00
middleware_exceptions
model_fields Fixed #18212 -- Standardized arguments of GenericIPAddressField 2012-09-01 18:38:55 +02:00
model_forms_regress [py3] Fixed uses of __metaclass__ in tests. 2012-08-15 00:31:29 +02:00
model_formsets_regress [py3] Refactored __unicode__ to __str__. 2012-08-12 14:44:40 +02:00
model_inheritance_regress [py3] Refactored __unicode__ to __str__. 2012-08-12 14:44:40 +02:00
model_inheritance_select_related [py3] Refactored __unicode__ to __str__. 2012-08-12 14:44:40 +02:00
model_permalink refs #12836 - Added a test to assure permalink wraps method attributes 2012-09-08 11:58:48 -04:00
model_regress Revert "Fixed #18063 -- Avoid unicode in Model.__repr__ in python 2" 2012-08-22 11:48:47 +10:00
modeladmin [py3k] Silence many warnings while running the tests. 2012-09-07 13:17:34 -04:00
multiple_database Fixed #18306 -- Made deferred models issue update_fields on save 2012-08-12 22:39:27 +03:00
nested_foreign_keys Fixed #16715 -- Fixed join promotion logic for nested nullable FKs 2012-08-25 14:14:45 +03:00
null_fk [py3] Refactored __unicode__ to __str__. 2012-08-12 14:44:40 +02:00
null_fk_ordering [py3] Refactored __unicode__ to __str__. 2012-08-12 14:44:40 +02:00
null_queries [py3] Refactored __unicode__ to __str__. 2012-08-12 14:44:40 +02:00
one_to_one_regress [py3] Refactored __unicode__ to __str__. 2012-08-12 14:44:40 +02:00
pagination_regress [py3k] Fixed pagination_regress tests. 2012-08-16 10:54:45 -04:00
queries Removed many uses of bare "except:", which were either going to a) silence real issues, or b) were impossible to hit. 2012-09-07 15:08:07 -04:00
queryset_pickle
requests [py3] Used BytesIO to test request streams 2012-08-11 11:11:20 +02:00
resolve_url Fixed #15552 -- LOGIN_URL and LOGIN_REDIRECT_URL can take URLpattern names. 2012-09-08 16:58:35 -06:00
reverse_single_related
select_related_onetoone [py3] Refactored __unicode__ to __str__. 2012-08-12 14:44:40 +02:00
select_related_regress [py3] Refactored __unicode__ to __str__. 2012-08-12 14:44:40 +02:00
serializers_regress [py3] Fixed serializers tests 2012-08-14 19:54:53 +02:00
servers [py3] Fix some more encoding issues in tests 2012-08-15 17:41:38 +02:00
settings_tests Cleaned up several test cases, to better isolate state. 2012-09-07 13:47:12 -04:00
signals_regress Cleaned up several test cases, to better isolate state. 2012-09-07 13:47:12 -04:00
signed_cookies_tests
signing Fixed #18852 -- Restored backwards compatibility 2012-08-25 22:22:32 +02:00
sites_framework [py3] Refactored __unicode__ to __str__. 2012-08-12 14:44:40 +02:00
special_headers
staticfiles_tests [py3k] Silence many warnings while running the tests. 2012-09-07 13:17:34 -04:00
string_lookup [py3] Refactored __unicode__ to __str__. 2012-08-12 14:44:40 +02:00
syndication [py3] Refactored __unicode__ to __str__. 2012-08-12 14:44:40 +02:00
templates [py3k] Silence many warnings while running the tests. 2012-09-07 13:17:34 -04:00
test_client_regress Fixed #18980 -- Fixed assertContains regression when passed an object 2012-09-18 21:05:41 +02:00
test_runner Fixed #18271 -- Changed stage at which TransactionTestCase flushes DB tables. 2012-07-24 17:24:16 -03:00
test_utils [py3k] Silence many warnings while running the tests. 2012-09-07 13:17:34 -04:00
text
transactions_regress Removed many uses of bare "except:", which were either going to a) silence real issues, or b) were impossible to hit. 2012-09-07 15:08:07 -04:00
urlpatterns_reverse [py3k] Silence many warnings while running the tests. 2012-09-07 13:17:34 -04:00
utils Replaced a deprecated assertEquals 2012-09-24 16:07:58 +02:00
version
views Modernized views.DebugViewTests 2012-09-15 21:07:42 +02:00
wsgi [py3k] Silence many warnings while running the tests. 2012-09-07 13:17:34 -04:00
__init__.py