1
0
mirror of https://github.com/django/django.git synced 2025-07-04 09:49:12 +00:00

2022 Commits

Author SHA1 Message Date
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
Luke Plant
f95dd12050 magic-removal: Removed an unused instance variable from Options class, meant to do this in r2547.
git-svn-id: http://code.djangoproject.com/svn/django/branches/magic-removal@2557 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2006-03-24 19:10:10 +00:00
Luke Plant
b9f4a027b4 magic-removal: Added a 'description' option to fieldset options that allows extra HTML to be displayed at the top of each fieldset in the admin.
git-svn-id: http://code.djangoproject.com/svn/django/branches/magic-removal@2556 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2006-03-24 19:05:46 +00:00
Jacob Kaplan-Moss
dc0fe82957 magic-removal: doc model detail views now correctly show model methods callable from the template
git-svn-id: http://code.djangoproject.com/svn/django/branches/magic-removal@2555 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2006-03-24 16:29:22 +00:00
Jacob Kaplan-Moss
90d5426adc magic-removal: made a few tweaks to admin documentation views to better handle
new-style relation descriptors and deal with non-named groups in urlpatterns.


git-svn-id: http://code.djangoproject.com/svn/django/branches/magic-removal@2554 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2006-03-24 16:13:57 +00:00
Jacob Kaplan-Moss
0cfe7fe53e magic-removal: fixed a small bug (typo, really) in RelatedManager
git-svn-id: http://code.djangoproject.com/svn/django/branches/magic-removal@2552 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2006-03-24 00:29:47 +00:00
Adrian Holovaty
cb5e2764be magic-removal: Removed app-specific stuff from django.core.management.syncdb, in favor of an event-based system. Permissions, superusers and the example.com site are now all done via a management.py file within the appropriate contrib app. This also means 'createsuperuser' is no longer a django-admin command...We'll probably want to restore that somehow, or add another utility that does it from the command line.
git-svn-id: http://code.djangoproject.com/svn/django/branches/magic-removal@2551 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2006-03-23 00:55:30 +00:00
Adrian Holovaty
17a4401f4c magic-removal: Merged to [2548]
git-svn-id: http://code.djangoproject.com/svn/django/branches/magic-removal@2549 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2006-03-22 22:35:14 +00:00
Luke Plant
e134da8a1a magic-removal: Fixed limit_choices_to functionality in m-r branch (bug introduced by a refactoring error AFAICS)
git-svn-id: http://code.djangoproject.com/svn/django/branches/magic-removal@2547 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2006-03-22 19:05:43 +00:00
Luke Plant
3da050e44e magic-removal: Updated docstring for LazyDate.
git-svn-id: http://code.djangoproject.com/svn/django/branches/magic-removal@2546 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2006-03-22 00:56:48 +00:00
Joseph Kocherhans
c0f3555eef magic-removal: Fixed 'allow_tags' behavior for model methods in admin change lists.
git-svn-id: http://code.djangoproject.com/svn/django/branches/magic-removal@2544 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2006-03-21 18:31:31 +00:00
Luke Plant
4927c2cf1e magic-removal: Negligible whitespace fix
git-svn-id: http://code.djangoproject.com/svn/django/branches/magic-removal@2542 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2006-03-20 23:05:57 +00:00
Adrian Holovaty
7f722a6425 magic-removal: Made 'Would you like to create a superuser' raw_input() more fault-tolerant in django/core/management.py
git-svn-id: http://code.djangoproject.com/svn/django/branches/magic-removal@2541 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2006-03-20 19:58:37 +00:00
Jacob Kaplan-Moss
8d238ce536 magic-removal: fixed #1489 - objects with 1-to-1 relations may be deleted in the admin (thanks, Christopher Lenz)
git-svn-id: http://code.djangoproject.com/svn/django/branches/magic-removal@2538 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2006-03-20 17:56:37 +00:00
Luke Plant
3c7e06e103 magic-removal: Fixed a variable name change that was omitted in r2529
git-svn-id: http://code.djangoproject.com/svn/django/branches/magic-removal@2537 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2006-03-20 13:48:26 +00:00
Adrian Holovaty
4f2752c333 magic-removal: Merged to [2533]
git-svn-id: http://code.djangoproject.com/svn/django/branches/magic-removal@2534 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2006-03-20 01:05:16 +00:00
Adrian Holovaty
52a96c1686 magic-removal: Merged to [2531]
git-svn-id: http://code.djangoproject.com/svn/django/branches/magic-removal@2532 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2006-03-19 23:45:00 +00:00
Luke Plant
9f248bf394 magic-removal: Fixed #1505 - Link to non-existant URL in admin
git-svn-id: http://code.djangoproject.com/svn/django/branches/magic-removal@2530 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2006-03-18 23:04:43 +00:00
Luke Plant
cb828b5494 magic-removal: Changed 'manage.py sql myapp' to print references to tables in other apps correctly (and print them commented out if those tables don't physically exist)
git-svn-id: http://code.djangoproject.com/svn/django/branches/magic-removal@2529 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2006-03-18 00:24:12 +00:00
Adrian Holovaty
404421895a magic-removal: Fixed #1464 -- Updated tutorial01 for magic-removal. Thanks, Jeremy D.
git-svn-id: http://code.djangoproject.com/svn/django/branches/magic-removal@2527 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2006-03-17 05:43:37 +00:00
Adrian Holovaty
fd00f02ce0 magic-removal: Changed django.VERSION to use two digits -- (0, 91) instead of (0, 9, 1)
git-svn-id: http://code.djangoproject.com/svn/django/branches/magic-removal@2526 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2006-03-17 05:04:14 +00:00
Adrian Holovaty
fde2cb50ac magic-removal: Changed welcome text in django.views.debug
git-svn-id: http://code.djangoproject.com/svn/django/branches/magic-removal@2525 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2006-03-17 04:55:34 +00:00
Adrian Holovaty
ff48a48b6a magic-removal: Merged to [2523]
git-svn-id: http://code.djangoproject.com/svn/django/branches/magic-removal@2524 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2006-03-16 03:02:51 +00:00
Luke Plant
bcacb8843e magic-removal: Added a fix to allow UserWrapper and request objects to be unpickled without infinite recursion loops.
git-svn-id: http://code.djangoproject.com/svn/django/branches/magic-removal@2521 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2006-03-13 22:10:59 +00:00
Luke Plant
4ddf1b3dc7 magic-removal: Fixed User.get_all_permissions() and related methods (including User.has_perm())
git-svn-id: http://code.djangoproject.com/svn/django/branches/magic-removal@2520 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2006-03-13 21:24:25 +00:00
Adrian Holovaty
bbc62cdccc magic-removal: Added first bit of validation-aware models. Model objects now have a validate() method. See docstrings in db.models.base and db.models.fields.__init__ for information. Also added unit tests for all the currently supported validation.
git-svn-id: http://code.djangoproject.com/svn/django/branches/magic-removal@2518 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2006-03-13 01:33:45 +00:00
Adrian Holovaty
ce41a3e736 magic-removal: Fixed #1460 -- Fixed pub_date__lt behavior in SQLite. Thanks for the patch, Malcolm Tredinnick
git-svn-id: http://code.djangoproject.com/svn/django/branches/magic-removal@2517 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2006-03-13 01:08:04 +00:00
Adrian Holovaty
ba273d88ac magic-removal: Fixed #1482 -- Corrected 'SET NAMES' syntax for MySQL backend. Thanks, Geert Vanderkelen
git-svn-id: http://code.djangoproject.com/svn/django/branches/magic-removal@2516 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2006-03-13 00:41:49 +00:00
Adrian Holovaty
0690229a3b magic-removal: Fixed #1485 -- Made admin template updates for changes to LogEntry model. Thanks, Christopher Lenz
git-svn-id: http://code.djangoproject.com/svn/django/branches/magic-removal@2515 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2006-03-13 00:39:43 +00:00
Adrian Holovaty
0d9ab72fea magic-removal: Fixed #1471 -- Changed manage.py installperms to work with apps without model classes. Thanks, Christopher Lenz
git-svn-id: http://code.djangoproject.com/svn/django/branches/magic-removal@2514 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2006-03-13 00:20:57 +00:00
Adrian Holovaty
e695567d10 magic-removal: Fixed #1492 -- Fixed typo in docs/transactions.txt. Thanks, Armin.
git-svn-id: http://code.djangoproject.com/svn/django/branches/magic-removal@2513 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2006-03-12 23:00:00 +00:00
Adrian Holovaty
8addbfa0d2 magic-removal: Fixed #1494 -- Added missing import to django.contirb.auth.decorators
git-svn-id: http://code.djangoproject.com/svn/django/branches/magic-removal@2512 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2006-03-12 22:41:04 +00:00
Russell Keith-Magee
7a0b04fdc3 magic-removal: Modified descriptor to return None rather than raising DoesNotExist if null=True for a related field.
git-svn-id: http://code.djangoproject.com/svn/django/branches/magic-removal@2511 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2006-03-12 04:10:57 +00:00
Russell Keith-Magee
a5bd0543f1 magic-removal: Added descriptor code for assignment of related object sets (Reporter.article_set = [a,b,c]).
git-svn-id: http://code.djangoproject.com/svn/django/branches/magic-removal@2510 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2006-03-12 03:58:11 +00:00
Luke Plant
9460c54e22 magic-removal: Fixed HTML error in delete_confirmation template
git-svn-id: http://code.djangoproject.com/svn/django/branches/magic-removal@2508 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2006-03-10 00:20:24 +00:00
Joseph Kocherhans
7ec0ebc022 magic-removal: added a couple of constructor tests for model_inheritance.
git-svn-id: http://code.djangoproject.com/svn/django/branches/magic-removal@2507 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2006-03-08 21:05:10 +00:00
Joseph Kocherhans
4b0fcefbc2 magic-removal: model inheirtance can now be more than 1 level deep.
git-svn-id: http://code.djangoproject.com/svn/django/branches/magic-removal@2506 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2006-03-08 20:59:00 +00:00
Joseph Kocherhans
7df29c013e magic-removal: Fixed #1479. I tried to track down the *real* problem to no avail. This fix is a total hack, but it works for now, and core is going to be re-removed soon anyhow.
git-svn-id: http://code.djangoproject.com/svn/django/branches/magic-removal@2505 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2006-03-08 20:54:03 +00:00
Joseph Kocherhans
a8efa34283 magic-removal: added trivial tests for model inheritance.
git-svn-id: http://code.djangoproject.com/svn/django/branches/magic-removal@2504 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2006-03-08 20:08:05 +00:00
Joseph Kocherhans
875d215818 magic-removal: fixed #1478. Thanks Russell Cloran.
git-svn-id: http://code.djangoproject.com/svn/django/branches/magic-removal@2503 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2006-03-08 19:10:43 +00:00
Jacob Kaplan-Moss
738d9af1e8 magic-removal: fixed #1330: edit-inline works again on magic-removal. Note that the API will change *substantailly* before we're done (for example, this reintroduces core fields, which suck) but this at least gives us a place to start with.
Many many thanks for Christopher Lenz, my new hero.


git-svn-id: http://code.djangoproject.com/svn/django/branches/magic-removal@2502 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2006-03-08 17:53:55 +00:00