Commit Graph

1699 Commits

Author SHA1 Message Date
Adrian Holovaty 12463932d3 magic-removal: Simplified a redundant import in django.db.models.manipulators
git-svn-id: http://code.djangoproject.com/svn/django/branches/magic-removal@2072 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2006-01-19 04:02:55 +00:00
Adrian Holovaty cf0406d5ea magic-removal: Removed support for '_preview' in admin POST data. This idea was never fully realized.
git-svn-id: http://code.djangoproject.com/svn/django/branches/magic-removal@2071 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2006-01-19 03:42:18 +00:00
Adrian Holovaty a1b6457313 magic-removal: Removed support for old-style undocumented '_or' syntax in DB queries.
git-svn-id: http://code.djangoproject.com/svn/django/branches/magic-removal@2070 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2006-01-19 03:33:30 +00:00
Adrian Holovaty 5954baf5e9 magic-removal: Merged to [2068]
git-svn-id: http://code.djangoproject.com/svn/django/branches/magic-removal@2069 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2006-01-19 03:30:53 +00:00
Adrian Holovaty df6c666fe3 magic-removal: Merged to [2066]
git-svn-id: http://code.djangoproject.com/svn/django/branches/magic-removal@2067 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2006-01-19 03:25:50 +00:00
Adrian Holovaty 6a91c0d558 magic-removal: Fixed URL-calculating logic in adminapplist template library
git-svn-id: http://code.djangoproject.com/svn/django/branches/magic-removal@2065 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2006-01-19 03:22:09 +00:00
Adrian Holovaty aa4039a4c5 magic-removal: Removed {% load breadcrumbs %} calls from admin templates
git-svn-id: http://code.djangoproject.com/svn/django/branches/magic-removal@2064 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2006-01-19 03:21:29 +00:00
Adrian Holovaty 06d23144bc magic-removal: Fixed breadcrumb links and removed path_breadcrumbs templatetag, which is no longer needed
git-svn-id: http://code.djangoproject.com/svn/django/branches/magic-removal@2063 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2006-01-19 03:12:40 +00:00
Adrian Holovaty 71e2df77d3 magic-removal: The start of changes to admin code. Moved views/changelist to views/main. Refactored URLs to use old-style app_label/model_name. Removed a lot of cruft that was necessary due to non-app_label/model name URLs.
git-svn-id: http://code.djangoproject.com/svn/django/branches/magic-removal@2062 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2006-01-19 03:06:01 +00:00
Adrian Holovaty 8a140005ff magic-removal: Removed core_models argument to get_installed_model_modules(). It's no longer necessary because there are no core models
git-svn-id: http://code.djangoproject.com/svn/django/branches/magic-removal@2061 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2006-01-19 02:29:40 +00:00
Adrian Holovaty 233254d634 magic-removal: Merged to [2059]
git-svn-id: http://code.djangoproject.com/svn/django/branches/magic-removal@2060 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2006-01-19 01:09:28 +00:00
Adrian Holovaty 58605bcfe3 magic-removal: Merged to [2056]
git-svn-id: http://code.djangoproject.com/svn/django/branches/magic-removal@2057 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2006-01-19 00:55:18 +00:00
Adrian Holovaty a4ead45cb2 magic-removal: Simplified a few lines in admin.views.main to use _get_pk_val()
git-svn-id: http://code.djangoproject.com/svn/django/branches/magic-removal@2055 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2006-01-19 00:44:56 +00:00
Adrian Holovaty 85951a64b8 magic-removal: Simplified code in admin.views.main -- removed log_change_message() function
git-svn-id: http://code.djangoproject.com/svn/django/branches/magic-removal@2054 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2006-01-19 00:43:22 +00:00
Adrian Holovaty 41e788c17a magic-removal: Simplified code in admin.views.main -- removed log_add_message() function
git-svn-id: http://code.djangoproject.com/svn/django/branches/magic-removal@2053 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2006-01-19 00:40:56 +00:00
Adrian Holovaty f1a33994f4 magic-removal: Removed _get_mod_opts() call in django.contrib.admin.views.main.history
git-svn-id: http://code.djangoproject.com/svn/django/branches/magic-removal@2052 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2006-01-19 00:32:47 +00:00
Joseph Kocherhans 9f4d2d5d27 magic-removal: Updated docs to reflect new location of django.core.extensions.
git-svn-id: http://code.djangoproject.com/svn/django/branches/magic-removal@2051 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2006-01-18 19:03:19 +00:00
Joseph Kocherhans 471bae17fa magic-removal: Moved django.core.extensions to django.shortcuts and updated references.
git-svn-id: http://code.djangoproject.com/svn/django/branches/magic-removal@2050 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2006-01-18 19:02:35 +00:00
Russell Keith-Magee 5f2ffee66e magic-removal: Refs #1219 -- added documentation for bulk delete feature.
git-svn-id: http://code.djangoproject.com/svn/django/branches/magic-removal@2048 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2006-01-18 13:25:13 +00:00
Russell Keith-Magee 186c09d96f magic-removal: Refs 1219 -- Added DELETE_ALL=True safety mechanism to prevent accidental deletion of entire table contents.
git-svn-id: http://code.djangoproject.com/svn/django/branches/magic-removal@2047 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2006-01-18 13:16:58 +00:00
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