Commit Graph

1466 Commits

Author SHA1 Message Date
Jacob Kaplan-Moss 1b0ccdce17 Moved admin options into inner "class Admin." Also refactored the model code so
that models.fields.Admin became models.options.AdminOptions.  This means that
old code that uses "admin = models.Admin()" will now break until it's replaced
with the new syntax.

(You can still use "admin = meta.AdminOptions(...)" if you care to, but I don't
see why.)


git-svn-id: http://code.djangoproject.com/svn/django/branches/magic-removal@1864 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2006-01-08 15:56:51 +00:00
Jacob Kaplan-Moss 8c07571a15 magic-removal: fixed django.contrib.comments to work with the new location of auth
git-svn-id: http://code.djangoproject.com/svn/django/branches/magic-removal@1863 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2006-01-08 15:10:08 +00:00
Russell Keith-Magee ea35b35a14 magic-removal: Fixes #1052 -- Added a 'weeks' fidelity to strings returned by timesince()/timeutil().
git-svn-id: http://code.djangoproject.com/svn/django/branches/magic-removal@1862 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2006-01-08 13:17:36 +00:00
Adrian Holovaty f998c7bcc6 magic-removal: Fixed #1186 -- Fixed problem resolving primary key in some 'pk' database queries. Also lightly refactored query-parsing code. Thanks, Russ
git-svn-id: http://code.djangoproject.com/svn/django/branches/magic-removal@1856 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2006-01-08 06:16:05 +00:00
Adrian Holovaty 2bc39d88e6 magic-removal: Changed get_all_related_many_to_many_objects to use caching. Refs #1186. Thanks, Russ
git-svn-id: http://code.djangoproject.com/svn/django/branches/magic-removal@1855 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2006-01-08 06:04:44 +00:00
Adrian Holovaty b23b39342b magic-removal: Merged to [1853]
git-svn-id: http://code.djangoproject.com/svn/django/branches/magic-removal@1854 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2006-01-08 05:56:45 +00:00
Joseph Kocherhans d22d53caf0 magic-removal: django-admin.py init-minimal works now.
git-svn-id: http://code.djangoproject.com/svn/django/branches/magic-removal@1849 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2006-01-06 23:51:31 +00:00
Joseph Kocherhans fbb47dbd9d magic-removal: django-admin.py init now installs django.contrib.auth
git-svn-id: http://code.djangoproject.com/svn/django/branches/magic-removal@1848 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2006-01-06 23:43:20 +00:00
Joseph Kocherhans 4d6ab8b308 magic-removal: removed django.models.auth and updated dependencies. django.models.auth is now django.contrib.auth.models.
git-svn-id: http://code.djangoproject.com/svn/django/branches/magic-removal@1847 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2006-01-06 23:42:07 +00:00
Joseph Kocherhans 62ee6fac3b magic-removal: added models to django.contrib.auth in preparation for move from django.models.auth.
git-svn-id: http://code.djangoproject.com/svn/django/branches/magic-removal@1846 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2006-01-06 23:37:54 +00:00
Joseph Kocherhans 1091c18c39 magic-removal: django-admin.py init now installs django.contrib.sessions and django.contrib.sites. Also added init_minimal and changed runtests to use it. Note that init_minimal is not available as a django-admin.py command yet.
git-svn-id: http://code.djangoproject.com/svn/django/branches/magic-removal@1845 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2006-01-06 22:45:00 +00:00
Joseph Kocherhans 33451f2172 magic-removal: Removed Sites from django.models.core and updated dependencies.
git-svn-id: http://code.djangoproject.com/svn/django/branches/magic-removal@1844 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2006-01-06 22:29:01 +00:00
Adrian Holovaty c4076a4314 magic-removal: Fixed some bugs in User.get_group_permissions()
git-svn-id: http://code.djangoproject.com/svn/django/branches/magic-removal@1843 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2006-01-06 22:18:50 +00:00
Joseph Kocherhans 4e713af133 magic-removal: Added django.contrib.sites in preparation for moving it out of django.models.core.
git-svn-id: http://code.djangoproject.com/svn/django/branches/magic-removal@1842 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2006-01-06 22:18:19 +00:00
Jacob Kaplan-Moss 548ee3795b magic-removal: fixed a Python2.4-ism in db.models.manipulators (use of keywords to list.sort)
git-svn-id: http://code.djangoproject.com/svn/django/branches/magic-removal@1841 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2006-01-06 22:10:35 +00:00
Jacob Kaplan-Moss 037a6ede40 Oops, removed commented-out code from [1839]
git-svn-id: http://code.djangoproject.com/svn/django/branches/magic-removal@1840 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2006-01-06 22:06:50 +00:00
Jacob Kaplan-Moss 84b7590ba6 magic-removal: cleaned up edit-inline tabular interface in preparation for new edit-inline interface (thanks for the new CSS/images, Wilson)
git-svn-id: http://code.djangoproject.com/svn/django/branches/magic-removal@1839 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2006-01-06 22:06:22 +00:00
Joseph Kocherhans c93965bbef magic-removal: updated session docs to reflect move of sessions to django.contrib.sessions.
git-svn-id: http://code.djangoproject.com/svn/django/branches/magic-removal@1838 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2006-01-06 21:07:15 +00:00
Joseph Kocherhans 617f63a0f6 magic-removal: Removed Session from django.models.core and updated session middleware to work with django.conrib.sessions.
git-svn-id: http://code.djangoproject.com/svn/django/branches/magic-removal@1837 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2006-01-06 21:06:22 +00:00
Joseph Kocherhans 170c4261fb magic-removal: Added django.contrib.sessions in preparation for moving it out of django.models.core.
git-svn-id: http://code.djangoproject.com/svn/django/branches/magic-removal@1836 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2006-01-06 21:04:07 +00:00
Adrian Holovaty bb8fb814a6 magic-removal: Merged to [1834]
git-svn-id: http://code.djangoproject.com/svn/django/branches/magic-removal@1835 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2006-01-06 20:49:38 +00:00
Jacob Kaplan-Moss d33099252a Removed ellington cruft from admin urlconf.
git-svn-id: http://code.djangoproject.com/svn/django/branches/magic-removal@1833 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2006-01-06 19:53:55 +00:00
Adrian Holovaty f89510c60c magic-removal: Changed manipulator unit tests to remove usage of sorted() function, which is Python 2.4 only
git-svn-id: http://code.djangoproject.com/svn/django/branches/magic-removal@1831 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2006-01-05 22:10:41 +00:00
Adrian Holovaty d975a92676 magic-removal: Added missing staff_member_required decorator for change_stage admin view
git-svn-id: http://code.djangoproject.com/svn/django/branches/magic-removal@1830 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2006-01-05 21:42:54 +00:00
Adrian Holovaty 3802561731 magic-removal: Tiny refactoring/reformatting of admin code
git-svn-id: http://code.djangoproject.com/svn/django/branches/magic-removal@1829 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2006-01-05 21:42:04 +00:00
Adrian Holovaty 1885443c82 magic-removal: Fixed #1159 -- Fixed error in 'unique' manipulator validator
git-svn-id: http://code.djangoproject.com/svn/django/branches/magic-removal@1828 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2006-01-05 21:12:42 +00:00
Adrian Holovaty 9033ba7d36 magic-removal: Fixed bug in Field.get_validator_unique_lookup_type. Also, negligible spacing/formatting changes
git-svn-id: http://code.djangoproject.com/svn/django/branches/magic-removal@1827 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2006-01-05 17:28:53 +00:00
Adrian Holovaty 078a1cfd3d magic-removal: Merged to [1825]
git-svn-id: http://code.djangoproject.com/svn/django/branches/magic-removal@1826 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2006-01-05 16:30:22 +00:00
Adrian Holovaty d14c513388 magic-removal: Fixed bug in app_label calculation in adminapplist templatetag
git-svn-id: http://code.djangoproject.com/svn/django/branches/magic-removal@1824 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2006-01-05 15:59:17 +00:00
Adrian Holovaty 7762756332 magic-removal: Negligible spacing change
git-svn-id: http://code.djangoproject.com/svn/django/branches/magic-removal@1823 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2006-01-05 15:01:25 +00:00
Adrian Holovaty 8d1dbddd75 magic-removal: Added helpful error message during 'sql, 'sqlall' and 'install' django-admin commands if DATABASE_ENGINE is blank
git-svn-id: http://code.djangoproject.com/svn/django/branches/magic-removal@1822 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2006-01-05 14:55:22 +00:00
Adrian Holovaty 1db708d4d7 magic-removal: Merged to [1817]
git-svn-id: http://code.djangoproject.com/svn/django/branches/magic-removal@1818 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2006-01-04 17:06:16 +00:00
Adrian Holovaty d694478813 magic-removal: Merged to [1809]
git-svn-id: http://code.djangoproject.com/svn/django/branches/magic-removal@1810 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2005-12-31 04:11:01 +00:00
Adrian Holovaty 029efcd089 magic-removal: Django no longer requires a database. Moved database-handling stuff in django handlers to use dispatching
git-svn-id: http://code.djangoproject.com/svn/django/branches/magic-removal@1807 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2005-12-31 00:08:49 +00:00
Adrian Holovaty 76bc09a09a magic-removal: Fixed bug in error message when DATABASE_ENGINE setting is invald.
git-svn-id: http://code.djangoproject.com/svn/django/branches/magic-removal@1806 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2005-12-30 23:42:57 +00:00
Adrian Holovaty c3aa635650 magic-removal: Negligible spacing fix
git-svn-id: http://code.djangoproject.com/svn/django/branches/magic-removal@1805 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2005-12-30 23:26:46 +00:00
Adrian Holovaty 8921893576 magic-removal: Changed get_introspection_module and get_creation_module in db/init.py to be lambda functions
git-svn-id: http://code.djangoproject.com/svn/django/branches/magic-removal@1804 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2005-12-30 23:22:07 +00:00
Adrian Holovaty 189cb2800f magic-removal: Added 'dummy' database backend, which is used as a fallback if DATABASE_ENGINE isn't set
git-svn-id: http://code.djangoproject.com/svn/django/branches/magic-removal@1803 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2005-12-30 23:21:02 +00:00
Adrian Holovaty b72373a7fd magic-removal: Fixed #1143 -- Fixed backwards incompatibilities in many-to-many DB API lookups, added support for reverse many-to-many lookups, added unit tests. Thanks, Russ
git-svn-id: http://code.djangoproject.com/svn/django/branches/magic-removal@1802 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2005-12-30 16:38:26 +00:00
Adrian Holovaty 9d5272d61d magic-removal: Fixed #1141 -- Fixed unit-test failures in [1799]. Thanks, Russ
git-svn-id: http://code.djangoproject.com/svn/django/branches/magic-removal@1801 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2005-12-30 15:51:53 +00:00
Adrian Holovaty a22a7ff4d0 magic-removal: Removed some debug print statements
git-svn-id: http://code.djangoproject.com/svn/django/branches/magic-removal@1800 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2005-12-30 15:49:20 +00:00
Robert Wittams 85ef615c42 magic-removal: Some validation fixes.
git-svn-id: http://code.djangoproject.com/svn/django/branches/magic-removal@1797 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2005-12-29 21:42:39 +00:00
Adrian Holovaty 8fae40894a magic-removal: Merged to [1795]
git-svn-id: http://code.djangoproject.com/svn/django/branches/magic-removal@1796 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2005-12-29 20:43:51 +00:00
Adrian Holovaty b343704398 magic-removal: Merged to [1793]
git-svn-id: http://code.djangoproject.com/svn/django/branches/magic-removal@1794 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2005-12-29 19:22:02 +00:00
Adrian Holovaty d382abc875 magic-removal: Fixed #1136: Removed duplicated DB joins resulting from kwarg evaluation. Thanks, Russ Magee
git-svn-id: http://code.djangoproject.com/svn/django/branches/magic-removal@1792 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2005-12-29 19:11:00 +00:00
Robert Wittams dc5eb659fa magic-removal: steps towards ordering in edit-inline and spreadsheetish editing in changelists using ManipulatorCollections.
git-svn-id: http://code.djangoproject.com/svn/django/branches/magic-removal@1780 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2005-12-26 16:16:11 +00:00
Robert Wittams 2466d9b0f1 magic-removal: changed how child manipulators are stored in preparation for reordering and paging.
git-svn-id: http://code.djangoproject.com/svn/django/branches/magic-removal@1777 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2005-12-24 17:54:37 +00:00
Adrian Holovaty 5c0fe75d44 magic-removal: Merged to [1774]
git-svn-id: http://code.djangoproject.com/svn/django/branches/magic-removal@1775 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2005-12-24 04:51:17 +00:00
Robert Wittams 4bf7d2c81c magic-removal: Command fixes. Add & remove now work properly with errors, and it works in both stacked and tabular views.
git-svn-id: http://code.djangoproject.com/svn/django/branches/magic-removal@1772 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2005-12-23 18:02:20 +00:00
Robert Wittams 4d3374c652 magic-removal: command stuff for stacked inline editing
git-svn-id: http://code.djangoproject.com/svn/django/branches/magic-removal@1771 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2005-12-23 13:40:09 +00:00