1
0
mirror of https://github.com/django/django.git synced 2025-07-04 17:59:13 +00:00

1962 Commits

Author SHA1 Message Date
Jacob Kaplan-Moss
2aef97f2cf magic-removal: fixed #1585: admin index tables now have 25% more semantic goodness
git-svn-id: http://code.djangoproject.com/svn/django/branches/magic-removal@2619 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2006-04-05 17:40:46 +00:00
Jacob Kaplan-Moss
291e309d8d removed some extraneous imports in django.utils.feedgenerator
git-svn-id: http://code.djangoproject.com/svn/django/branches/magic-removal@2618 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2006-04-05 17:36:12 +00:00
Jacob Kaplan-Moss
b00a6c29f9 magic-removal: fixed #1572 -- feedgenerator RSSv2 feeds now support missing author names (thanks, limodou)
git-svn-id: http://code.djangoproject.com/svn/django/branches/magic-removal@2617 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2006-04-05 17:35:18 +00:00
Jacob Kaplan-Moss
924d9e2f6a magic-removal: updated tutorials 2 and 4 to be magic-removal-complient (refs #1464). Thanks to ChaosKCW and jbowtie.
git-svn-id: http://code.djangoproject.com/svn/django/branches/magic-removal@2616 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2006-04-05 17:26:08 +00:00
Jacob Kaplan-Moss
537f01c162 magic-removal: fixed #1425 -- django.views.defaults.shortcut now works correctly (thanks, Christopher Lenz)
git-svn-id: http://code.djangoproject.com/svn/django/branches/magic-removal@2615 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2006-04-05 17:14:09 +00:00
Jacob Kaplan-Moss
3825cb0a7d magic-removal: fixed #618 -- the mysql backend now tolerates strings in DATABASE_PORT
git-svn-id: http://code.djangoproject.com/svn/django/branches/magic-removal@2614 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2006-04-05 15:21:36 +00:00
Luke Plant
fcea8ed021 magic-removal: Fixed #1535 (bug with combined m2m and m2o to the same model). Thanks, Russell Cloran.
git-svn-id: http://code.djangoproject.com/svn/django/branches/magic-removal@2613 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2006-04-05 12:00:38 +00:00
Luke Plant
158691e884 magic-removal: Added tests for bug #1535 (currently failing)
git-svn-id: http://code.djangoproject.com/svn/django/branches/magic-removal@2612 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2006-04-05 11:46:30 +00:00
Luke Plant
cc6ab74c36 magic-removal: Fixed an strange bug with postgres connections not being closed.
git-svn-id: http://code.djangoproject.com/svn/django/branches/magic-removal@2611 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2006-04-05 07:35:47 +00:00
Luke Plant
df26d4bcc4 magic-removal: Added an 'ordering' option on a model in order to make test deterministic across databases, and updated details of tests accordingly (fixes 7 tests on Postgres).
git-svn-id: http://code.djangoproject.com/svn/django/branches/magic-removal@2610 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2006-04-04 19:40:00 +00:00
Russell Keith-Magee
f7e00af2c3 magic-removal: Updated documentation for authentication app.
git-svn-id: http://code.djangoproject.com/svn/django/branches/magic-removal@2609 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2006-04-04 12:28:17 +00:00
Russell Keith-Magee
f8b3f9391b magic-removal: Fixes #1263 -- Updated docs to reflect changes in database table names used by admin, auth, etc. Thanks, Malcolm Tredinnick.
git-svn-id: http://code.djangoproject.com/svn/django/branches/magic-removal@2608 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2006-04-04 12:26:29 +00:00
Adrian Holovaty
1764a4dac1 magic-removal: Slightly cleaned up docs/cache.txt
git-svn-id: http://code.djangoproject.com/svn/django/branches/magic-removal@2607 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2006-04-04 00:13:51 +00:00
Adrian Holovaty
c5beee9500 magic-removal: Fixed spelling of 'behavior' in docstring
git-svn-id: http://code.djangoproject.com/svn/django/branches/magic-removal@2606 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2006-04-03 23:54:57 +00:00
Luke Plant
2eb2bad2e1 magic-removal: Refactored ManyRelatedObjectsDescriptor and
ReverseManyRelatedObjectsDescriptor to remove duplication and simplify
code, with some small related cleanups.



git-svn-id: http://code.djangoproject.com/svn/django/branches/magic-removal@2605 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2006-04-01 18:02:13 +00:00
Russell Keith-Magee
0d6f2f8707 magic-removal: Fixes #1396 -- Added exception handler (and silent_variable_failure check) for edge case in descriptor lookup.
git-svn-id: http://code.djangoproject.com/svn/django/branches/magic-removal@2604 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2006-04-01 03:14:35 +00:00
Luke Plant
859e652d36 magic-removal: Added @never_cache decorator to the admin 'history', 'add_stage', and 'change_list' views. This is important because otherwise web-caches are allowed to cache the page if there is no 'Expires' header and the user won't see the success/failure messages.
git-svn-id: http://code.djangoproject.com/svn/django/branches/magic-removal@2603 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2006-03-31 18:09:45 +00:00
Luke Plant
4d76b4df25 magic-removal: Refactored never_cache decorator to provide a utility
function that can be used inside views, and added docs.


git-svn-id: http://code.djangoproject.com/svn/django/branches/magic-removal@2602 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2006-03-30 23:29:21 +00:00
Luke Plant
8102d1262e magic-removal: Added support for HTTP_X_FORWARDED_HOST in all
places where HTTP_HOST is used, for support of virtual hosting
situations.


git-svn-id: http://code.djangoproject.com/svn/django/branches/magic-removal@2601 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2006-03-30 23:03:19 +00:00
Luke Plant
835dc7e863 magic-removal: removed accidentally added import statement from last commit
git-svn-id: http://code.djangoproject.com/svn/django/branches/magic-removal@2600 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2006-03-30 22:25:54 +00:00
Luke Plant
9db4a5e5ed magic-removal: Added 'never_cache' decorator that sets
'Expires' as a past date and max-age=0, and used it in the 
admin to prevent loss of data in the change_stage view.


git-svn-id: http://code.djangoproject.com/svn/django/branches/magic-removal@2599 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2006-03-30 21:40:36 +00:00
Russell Keith-Magee
d4a6375fba magic-removal: Modified caching strategy for descriptors to force re-evaluation of cache on the first get following a set. This is required to avoid duplication of the 'should I throw DoesNotExist' logic.
git-svn-id: http://code.djangoproject.com/svn/django/branches/magic-removal@2598 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2006-03-30 13:12:11 +00:00
Adrian Holovaty
5072df1ac4 magic-removal: Fixed #1556 -- Fixed typo in django.core.management from [2585]. Thanks, pawel.sawicki
git-svn-id: http://code.djangoproject.com/svn/django/branches/magic-removal@2596 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2006-03-30 03:33:26 +00:00
Adrian Holovaty
344cc981f6 magic-removal: Fixed #1557 -- Fixed typo in generic-views success message. Thanks, Matthew Flanagan
git-svn-id: http://code.djangoproject.com/svn/django/branches/magic-removal@2595 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2006-03-30 03:30:45 +00:00
Jacob Kaplan-Moss
07131c390d magic-removal: fixed #1554 (thanks, Christopher Lenz)
git-svn-id: http://code.djangoproject.com/svn/django/branches/magic-removal@2594 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2006-03-29 16:05:56 +00:00
Adrian Holovaty
fec6bb5d5c magic-removal: Fixed #1552 -- Gave verbose_name_plural a default value
git-svn-id: http://code.djangoproject.com/svn/django/branches/magic-removal@2593 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2006-03-29 06:17:25 +00:00
Adrian Holovaty
72f6ce935a magic-removal: Removed stray SESSION_KEY import in contrib.auth.middleware. Thanks, Kieran
git-svn-id: http://code.djangoproject.com/svn/django/branches/magic-removal@2592 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2006-03-29 02:55:30 +00:00
Adrian Holovaty
b13ff1762e magic-removal: Changed LazyUser implementation in auth middleware so that it doesn't take request.session in its constructor. This way, session data isn't saved over multiple requests
git-svn-id: http://code.djangoproject.com/svn/django/branches/magic-removal@2591 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2006-03-28 23:59:38 +00:00
Adrian Holovaty
02b3f4489d magic-removal: Fixed #1488 -- request.user is no longer read-only. Also improved it to only hit the session database table if a user is requested.
git-svn-id: http://code.djangoproject.com/svn/django/branches/magic-removal@2590 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2006-03-28 23:47:45 +00:00
Adrian Holovaty
e7a47635a2 magic-removal: Merged to [2588]
git-svn-id: http://code.djangoproject.com/svn/django/branches/magic-removal@2589 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2006-03-28 21:40:34 +00:00
Adrian Holovaty
5372618b3c magic-removal: Removed section in django.core.management.get_sql_delete that deleted content types, permissions and admin log stuff -- that was coupled to those contrib apps
git-svn-id: http://code.djangoproject.com/svn/django/branches/magic-removal@2586 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2006-03-28 21:33:08 +00:00
Adrian Holovaty
493f8b9e5b magic-removal: Fixed #1491 -- Added nice terminal colors to django-admin SQL output. Thanks, plmeister@gmail.com
git-svn-id: http://code.djangoproject.com/svn/django/branches/magic-removal@2585 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2006-03-28 21:31:36 +00:00
Adrian Holovaty
639fe6a87a magic-removal: Removed unnecessary 'usage: ' string from django.core.management optionparser
git-svn-id: http://code.djangoproject.com/svn/django/branches/magic-removal@2584 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2006-03-28 18:29:15 +00:00
Adrian Holovaty
afeda3d7bd magic-removal: Merged to [2582]
git-svn-id: http://code.djangoproject.com/svn/django/branches/magic-removal@2583 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2006-03-28 17:47:53 +00:00
Adrian Holovaty
5fc71e4453 magic-removal: Merged to [2580]
git-svn-id: http://code.djangoproject.com/svn/django/branches/magic-removal@2581 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2006-03-28 17:42:29 +00:00
Adrian Holovaty
15b5f4ded2 magic-removal: Fixed #1539: Fixed multithreading problem in QueryDict. Thanks, Eugene and Alex Brown
git-svn-id: http://code.djangoproject.com/svn/django/branches/magic-removal@2577 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2006-03-28 17:29:56 +00:00
Adrian Holovaty
ff3810c5ae magic-removal: Tiny change to comment
git-svn-id: http://code.djangoproject.com/svn/django/branches/magic-removal@2576 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2006-03-28 17:27:23 +00:00
Adrian Holovaty
02b3ed3a1c magic-removal: Merged to [2574]
git-svn-id: http://code.djangoproject.com/svn/django/branches/magic-removal@2575 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2006-03-28 17:25:53 +00:00
Adrian Holovaty
652a05777e magic-removal: Fixed Option.verbose_name_plural behavior so that it's always calculated based on verbose_name, regardless of whether a custom verbose_name was given. Thanks for reporting, ChaosKCW
git-svn-id: http://code.djangoproject.com/svn/django/branches/magic-removal@2571 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2006-03-27 23:20:59 +00:00
Adrian Holovaty
1200356c1c magic-removal: Folded django.db.models.options.Options.merge_meta into contribute_to_class(). No need to make it a separate method.
git-svn-id: http://code.djangoproject.com/svn/django/branches/magic-removal@2570 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2006-03-27 23:04:41 +00:00
Luke Plant
dd8b60bd17 magic-removal: Removed some unused duplicated code.
git-svn-id: http://code.djangoproject.com/svn/django/branches/magic-removal@2568 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2006-03-27 19:15:36 +00:00
Russell Keith-Magee
01babca674 magic-removal: Refs #1508 -- Fixed stuff up in check in for r2565.
git-svn-id: http://code.djangoproject.com/svn/django/branches/magic-removal@2567 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2006-03-27 10:08:34 +00:00
Adrian Holovaty
24da07329d magic-removal: Added missing get_ul_class import to db.models.fields.related
git-svn-id: http://code.djangoproject.com/svn/django/branches/magic-removal@2566 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2006-03-26 22:29:17 +00:00
Russell Keith-Magee
20e5b9f7e3 magic-removal: Fixed #1508 -- Added index creation to sqlall stage of manage.py. Thanks, Ned.
git-svn-id: http://code.djangoproject.com/svn/django/branches/magic-removal@2565 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2006-03-26 02:22:41 +00:00
Russell Keith-Magee
2e6bd70a17 magic-removal: Fixed assignment notation on descriptors for one-to-one fields.
git-svn-id: http://code.djangoproject.com/svn/django/branches/magic-removal@2564 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2006-03-26 01:37:06 +00:00
Luke Plant
9474b37bdf magic-removal: Removed the 'Save and continue editing' button in the case where user does not have the 'change' permission, since
the button does not allow them to actually do that in that situation.


git-svn-id: http://code.djangoproject.com/svn/django/branches/magic-removal@2563 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2006-03-25 20:40:00 +00:00
Luke Plant
339a320226 magic-removal: Fixed admin 'add' view so that after adding an object, the user is not redirected to a
confusing 'permission denied' page if they don't have 'change' rights.


git-svn-id: http://code.djangoproject.com/svn/django/branches/magic-removal@2562 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2006-03-24 23:09:48 +00:00
Joseph Kocherhans
7335a12b48 magic-removal: fixed django.contrib.auth.models.User.get_group_permissions. It was returning content_type_id.codename rather than app_label.codename for each permissions so has_perm didn't work for group permissions.
git-svn-id: http://code.djangoproject.com/svn/django/branches/magic-removal@2561 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2006-03-24 22:20:41 +00:00
Joseph Kocherhans
e433f4797b No comments so... fixed #1532.
git-svn-id: http://code.djangoproject.com/svn/django/branches/magic-removal@2560 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2006-03-24 21:52:39 +00:00
Adrian Holovaty
69c76d7e08 magic-removal: Merged to [2558]
git-svn-id: http://code.djangoproject.com/svn/django/branches/magic-removal@2559 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2006-03-24 19:15:57 +00:00