Commit Graph

1729 Commits

Author SHA1 Message Date
Adrian Holovaty c2d468095d magic-removal: Simplified AdminBoundField.existing_display() logic to use a single method instead of three
git-svn-id: http://code.djangoproject.com/svn/django/branches/magic-removal@2045 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2006-01-18 01:52:28 +00:00
Adrian Holovaty a4e14b451c magic-removal: Cleaned up DjangoContext import in django/contrib/admin/views/main.py
git-svn-id: http://code.djangoproject.com/svn/django/branches/magic-removal@2044 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2006-01-17 23:05:22 +00:00
Adrian Holovaty c4e2e4e881 magic-removal: Continued cleanup of various messiness in admin code. Tightened sprawling django.contrib.admin.views.stages package into django.contrib.admin.views.main module, as previously organized.
git-svn-id: http://code.djangoproject.com/svn/django/branches/magic-removal@2043 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2006-01-17 22:57:50 +00:00
Adrian Holovaty 795e6cbcf2 magic-removal: Cleaned up various messiness in admin code
git-svn-id: http://code.djangoproject.com/svn/django/branches/magic-removal@2042 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2006-01-17 22:24:39 +00:00
Adrian Holovaty 7592ca69af magic-removal: Removed ignore_objects argument to delete() and added some docs and comments to that function
git-svn-id: http://code.djangoproject.com/svn/django/branches/magic-removal@2041 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2006-01-17 22:01:14 +00:00
Adrian Holovaty c85e3d4a2a magic-removal: Added some unit tests to many_to_one that verify deletion of related objects
git-svn-id: http://code.djangoproject.com/svn/django/branches/magic-removal@2040 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2006-01-17 21:55:07 +00:00
Adrian Holovaty 5c970704fe magic-removal: Refactored database-access code to use Model._get_pk_val() for simplicity
git-svn-id: http://code.djangoproject.com/svn/django/branches/magic-removal@2039 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2006-01-17 20:00:30 +00:00
Adrian Holovaty 6e8d06572a magic-removal: Removed _pre_save(), _post_save(), _pre_delete() and _post_delete() hooks. Just subclass the save() and delete() methods now.
git-svn-id: http://code.djangoproject.com/svn/django/branches/magic-removal@2038 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2006-01-17 19:27:27 +00:00
Adrian Holovaty 51d2de6a56 magic-removal: Changed save_delete_hooks unit test to use new convention for overriding save() and delete()
git-svn-id: http://code.djangoproject.com/svn/django/branches/magic-removal@2037 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2006-01-17 19:18:24 +00:00
Adrian Holovaty 6074e49daa magic-removal: Merged to [2034]
git-svn-id: http://code.djangoproject.com/svn/django/branches/magic-removal@2035 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2006-01-17 17:57:27 +00:00
Adrian Holovaty f1cf65c7bc magic-removal: Fixed bug in mysql backend with DEBUG=True
git-svn-id: http://code.djangoproject.com/svn/django/branches/magic-removal@2033 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2006-01-17 17:45:40 +00:00
Adrian Holovaty 05c3097f0f magic-removal: Tiny code cleanups in db.models modules, and removed ManyToManyFieldNew (which was never finished)
git-svn-id: http://code.djangoproject.com/svn/django/branches/magic-removal@2032 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2006-01-17 17:23:18 +00:00
Georg Bauer 464271a273 Refs #1212 - moved settings from a dedicated module into a dedicated global instance
git-svn-id: http://code.djangoproject.com/svn/django/branches/magic-removal@2031 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2006-01-17 14:19:10 +00:00
Russell Keith-Magee c983ab3e16 magic-removal: Fixed template unit tests. Corrected expected output for 'spaceless' tests, added extra error condition for cycle tests.
git-svn-id: http://code.djangoproject.com/svn/django/branches/magic-removal@2030 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2006-01-17 12:47:12 +00:00
Russell Keith-Magee 00f93bc7bb magic-removal: Fixed #1219 - Added bulk delete for objects.
git-svn-id: http://code.djangoproject.com/svn/django/branches/magic-removal@2029 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2006-01-17 12:06:16 +00:00
Adrian Holovaty d9780b7bd5 magic-removal: Removed OrderingField.contribute_to_class(), which wasn't doing anything.
git-svn-id: http://code.djangoproject.com/svn/django/branches/magic-removal@2028 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2006-01-17 05:30:16 +00:00
Adrian Holovaty 5dda10f2ef magic-removal: Changed AutoField.contribute_to_class() to use 'assert' instead of 'if'
git-svn-id: http://code.djangoproject.com/svn/django/branches/magic-removal@2027 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2006-01-17 05:27:02 +00:00
Adrian Holovaty c7fc2bfb68 magic-removal: Changed 'app_package' variable name in ModelBase.__new__ and made slight sys.modules optimization
git-svn-id: http://code.djangoproject.com/svn/django/branches/magic-removal@2026 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2006-01-17 05:21:23 +00:00
Adrian Holovaty 8816af6714 magic-removal: Changed default model.__init__() docstring to remove module_name and use field.attname instead of field.name
git-svn-id: http://code.djangoproject.com/svn/django/branches/magic-removal@2025 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2006-01-17 00:44:06 +00:00
Adrian Holovaty a0433627a0 magic-removal: Fixed links on delete 'Are you sure' page
git-svn-id: http://code.djangoproject.com/svn/django/branches/magic-removal@2024 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2006-01-17 00:06:47 +00:00
Adrian Holovaty ad0b474a8b Removed unused module_name reference in django.contrib.admin.templatetags.adminapplist
git-svn-id: http://code.djangoproject.com/svn/django/branches/magic-removal@2023 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2006-01-17 00:03:15 +00:00
Adrian Holovaty 40d4782263 magic-removal: Changed Options.__repr__ to use object_name, not module_name (which is going away)
git-svn-id: http://code.djangoproject.com/svn/django/branches/magic-removal@2022 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2006-01-16 23:52:20 +00:00
Adrian Holovaty fd44a02a1a magic-removal: Negligible spacing fixes
git-svn-id: http://code.djangoproject.com/svn/django/branches/magic-removal@2021 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2006-01-16 23:44:16 +00:00
Adrian Holovaty ae4f89436f magic-removal: Added helpful error message if a model contains a field named 'Admin' that isn't admin settings
git-svn-id: http://code.djangoproject.com/svn/django/branches/magic-removal@2020 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2006-01-16 23:44:06 +00:00
Adrian Holovaty 2a04bb9b58 magic-removal: Changed variable name in django.db.models.base.Model.add_to_class()
git-svn-id: http://code.djangoproject.com/svn/django/branches/magic-removal@2019 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2006-01-16 23:35:09 +00:00
Adrian Holovaty 90ff521e4e magic-removal: Simplified overengineered 'attribute_transforms' code in django/db/models/base.py
git-svn-id: http://code.djangoproject.com/svn/django/branches/magic-removal@2018 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2006-01-16 23:27:59 +00:00
Adrian Holovaty 1eacb0f6ed magic-removal: Negligible formatting cleanups in django/db/models
git-svn-id: http://code.djangoproject.com/svn/django/branches/magic-removal@2017 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2006-01-16 23:11:12 +00:00
Adrian Holovaty f2370573bc magic-removal: Merged to [2014]
git-svn-id: http://code.djangoproject.com/svn/django/branches/magic-removal@2015 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2006-01-16 21:45:27 +00:00
Adrian Holovaty b02bb933fd magic-removal: Merged to [2012]
git-svn-id: http://code.djangoproject.com/svn/django/branches/magic-removal@2013 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2006-01-16 19:00:24 +00:00
Adrian Holovaty d6bf53760b magic-removal: Merged to [2010]
git-svn-id: http://code.djangoproject.com/svn/django/branches/magic-removal@2011 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2006-01-16 18:56:44 +00:00
Georg Bauer 2221cdabff magic-removal: changed explicit settings import to qualified settings import - last part, this is all in django.template
git-svn-id: http://code.djangoproject.com/svn/django/branches/magic-removal@2008 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2006-01-16 15:34:03 +00:00
Georg Bauer 41e36aba95 magic-removal: changed explicit settings import to qualified settings import in django.core.management
git-svn-id: http://code.djangoproject.com/svn/django/branches/magic-removal@2007 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2006-01-16 15:27:30 +00:00
Georg Bauer 679b8f0d06 magic-removal: changed explicit settings import to qualified settings import in django.core.mail
git-svn-id: http://code.djangoproject.com/svn/django/branches/magic-removal@2006 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2006-01-16 15:26:10 +00:00
Georg Bauer 307b95b45b magic-removal: changed explicit settings import to qualified settings import in django.core.validators
git-svn-id: http://code.djangoproject.com/svn/django/branches/magic-removal@2005 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2006-01-16 15:24:37 +00:00
Georg Bauer e3ecd5eeb4 magic-removal: changed explicit settings import to qualified settings import in django.core.context_processors
git-svn-id: http://code.djangoproject.com/svn/django/branches/magic-removal@2004 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2006-01-16 15:24:06 +00:00
Georg Bauer c5e944a7e2 magic-removal: changed explicit settings import to qualified settings import in django.core.cache
git-svn-id: http://code.djangoproject.com/svn/django/branches/magic-removal@2003 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2006-01-16 15:23:15 +00:00
Georg Bauer ba787be1af magic-removal: changed explicit settings import to qualified settings import in django.core.xheaders
git-svn-id: http://code.djangoproject.com/svn/django/branches/magic-removal@2002 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2006-01-16 15:22:40 +00:00
Georg Bauer 02ea6a4074 magic-removal: changed explicit settings import to qualified settings import in django.core.handlers
git-svn-id: http://code.djangoproject.com/svn/django/branches/magic-removal@2001 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2006-01-16 15:22:01 +00:00
Georg Bauer 179beccfea magic-removal: changed explicit settings import to qualified settings import in django.core.servers
git-svn-id: http://code.djangoproject.com/svn/django/branches/magic-removal@2000 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2006-01-16 15:20:38 +00:00
Georg Bauer cdef2c15df magic-removal: changed explicit settings import to qualified settings import in django.db
git-svn-id: http://code.djangoproject.com/svn/django/branches/magic-removal@1999 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2006-01-16 15:19:18 +00:00
Georg Bauer c1fbb8682c magic-removal: changed explicit settings import to qualified settings import in django.contrib.comments
git-svn-id: http://code.djangoproject.com/svn/django/branches/magic-removal@1998 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2006-01-16 15:15:42 +00:00
Georg Bauer 596ee7e14b magic-removal: changed explicit settings import to qualified settings import in django.contrib.sessions
git-svn-id: http://code.djangoproject.com/svn/django/branches/magic-removal@1997 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2006-01-16 15:07:24 +00:00
Georg Bauer abeb5681b4 magic-removal: changed explicit settings import to qualified settings import in django.contrib.flatpages
git-svn-id: http://code.djangoproject.com/svn/django/branches/magic-removal@1996 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2006-01-16 15:04:06 +00:00
Georg Bauer 0aca6e1d1d magic-removal: changed explicit settings import to qualified settings import in django.contrib.syndication
git-svn-id: http://code.djangoproject.com/svn/django/branches/magic-removal@1995 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2006-01-16 15:02:57 +00:00
Georg Bauer f53492df56 magic-removal: changed explicit settings import to qualified settings import django.contrib.sites
git-svn-id: http://code.djangoproject.com/svn/django/branches/magic-removal@1994 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2006-01-16 15:02:02 +00:00
Georg Bauer 91f21f0641 magic-removal: changed explicit settings import to qualified settings import django.contrib.redirects
git-svn-id: http://code.djangoproject.com/svn/django/branches/magic-removal@1993 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2006-01-16 15:01:26 +00:00
Georg Bauer 22012296bd magic-removal: changed explicit settings import to qualified settings import in django.contrib.auth
git-svn-id: http://code.djangoproject.com/svn/django/branches/magic-removal@1992 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2006-01-16 15:00:42 +00:00
Georg Bauer bae1f6815b magic-removal: changed explicit settings import to qualified settings import in django.templatetags.i18n
git-svn-id: http://code.djangoproject.com/svn/django/branches/magic-removal@1991 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2006-01-16 14:59:40 +00:00
Georg Bauer 42350ba71a magic-removal: changed explicit settings import to qualified settings import in django.templatetags
git-svn-id: http://code.djangoproject.com/svn/django/branches/magic-removal@1990 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2006-01-16 14:58:24 +00:00
Georg Bauer aad6c20978 magic-removal: changed explicit settings import to qualified settings import in django.forms
git-svn-id: http://code.djangoproject.com/svn/django/branches/magic-removal@1989 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2006-01-16 14:55:34 +00:00