Adrian Holovaty
15fb988dbc
Changed contrib.admin.views.template and doc to use staff_member_required decorator. Refs #627
...
git-svn-id: http://code.djangoproject.com/svn/django/trunk@929 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2005-10-18 05:12:45 +00:00
Adrian Holovaty
530f8d12b7
Removed django.views.admin. Everything has been moved to django.contrib.admin.views. Refs #627
...
git-svn-id: http://code.djangoproject.com/svn/django/trunk@928 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2005-10-18 04:59:26 +00:00
Adrian Holovaty
b4fd513f9f
Moved views.admin.main to contrib.admin.views.main. Refs #627 . Note that this is still backwards-compatible, assuming people are using django.conf.urls.admin as their admin URLconf
...
git-svn-id: http://code.djangoproject.com/svn/django/trunk@927 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2005-10-18 04:58:34 +00:00
Adrian Holovaty
055056bc31
Added django.contrib.admin.urls and django.contrib.admin.templates. Refs #627
...
git-svn-id: http://code.djangoproject.com/svn/django/trunk@925 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2005-10-18 04:44:24 +00:00
Adrian Holovaty
1cde1e8e59
Removed jsvalidation line in django.conf.urls.admin -- that doesn't exist
...
git-svn-id: http://code.djangoproject.com/svn/django/trunk@924 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2005-10-18 04:42:02 +00:00
Adrian Holovaty
aed1930133
Moved django.views.admin.template and django.views.admin.doc to django.contrib.admin.views. Refs #627
...
git-svn-id: http://code.djangoproject.com/svn/django/trunk@923 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2005-10-18 04:40:47 +00:00
Adrian Holovaty
1dc6d4b265
Changed django.views.admin.doc to use template.loader instead of template_loader
...
git-svn-id: http://code.djangoproject.com/svn/django/trunk@922 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2005-10-18 04:36:28 +00:00
Adrian Holovaty
91c67bcd45
Added django.contrib.admin, with a staff_member_required decorator and code from AdminUserRequired middleware. Refs #627
...
git-svn-id: http://code.djangoproject.com/svn/django/trunk@921 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2005-10-18 04:21:07 +00:00
Wilson Miner
72442152d2
Fixed #638 and cleaned up some CSS
...
git-svn-id: http://code.djangoproject.com/svn/django/trunk@917 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2005-10-17 20:22:12 +00:00
Adrian Holovaty
383704ac84
Fixed #634 -- Changed shortcut view to accept get_absolute_url()s that return URLs starting with http. Thanks, Hugo
...
git-svn-id: http://code.djangoproject.com/svn/django/trunk@903 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2005-10-17 13:24:29 +00:00
Adrian Holovaty
8b7ebca68a
Changed global_settings.ADMIN_FOR from [] to ()
...
git-svn-id: http://code.djangoproject.com/svn/django/trunk@894 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2005-10-17 04:36:51 +00:00
Adrian Holovaty
57b4f231fd
Fixed #583 -- Added app_directories template loader, which searches for templates in 'templates' directory in each INSTALLED_APPS package. It's turned off by default.
...
git-svn-id: http://code.djangoproject.com/svn/django/trunk@892 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2005-10-17 02:37:50 +00:00
Adrian Holovaty
e8fda9091a
Fixed typo in filesystem template-loader error message
...
git-svn-id: http://code.djangoproject.com/svn/django/trunk@890 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2005-10-17 02:18:28 +00:00
Adrian Holovaty
dc3f6e4113
Changed internal variable names in django.core.template.loaders.eggs to be consistent with filesystem
...
git-svn-id: http://code.djangoproject.com/svn/django/trunk@889 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2005-10-17 01:53:22 +00:00
Adrian Holovaty
f808d1bb8c
Removed django/conf/admin_templates/changelist_generic.html -- a leftover, legacy template that's no longer used
...
git-svn-id: http://code.djangoproject.com/svn/django/trunk@888 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2005-10-16 20:52:11 +00:00
Adrian Holovaty
a2e26150b7
Fixed #616 -- Added a process_exception() hook to middleware framework. Thanks, Hugo
...
git-svn-id: http://code.djangoproject.com/svn/django/trunk@880 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2005-10-15 02:20:35 +00:00
Adrian Holovaty
24154b2166
Fixed #225 -- Added first stab at MS SQL Server support (via ADO). Thanks to gmilas@gmail.com for the patch
...
git-svn-id: http://code.djangoproject.com/svn/django/trunk@879 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2005-10-15 01:37:16 +00:00
Adrian Holovaty
8254a7a7db
Fixed #628 -- Django no longer overwrites model class docstrings if they're provided
...
git-svn-id: http://code.djangoproject.com/svn/django/trunk@878 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2005-10-15 00:54:42 +00:00
Adrian Holovaty
f575a4edaa
Fixed small namespace bug in [867]
...
git-svn-id: http://code.djangoproject.com/svn/django/trunk@872 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2005-10-14 22:29:13 +00:00
Adrian Holovaty
7aefff7833
Fixed #582 -- Added support for loading templates from Python eggs, and a TEMPLATE_LOADERS setting, which defines which loaders to use. Thanks, Sune
...
git-svn-id: http://code.djangoproject.com/svn/django/trunk@870 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2005-10-14 22:22:12 +00:00
Adrian Holovaty
083b4f9001
Redid [865], which got lost in [867]
...
git-svn-id: http://code.djangoproject.com/svn/django/trunk@868 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2005-10-14 20:12:16 +00:00
Adrian Holovaty
f71f854628
Fixed #626 -- Moved template modules to django.core.template package. django.core.template_loader is deprecated, in favor of django.core.template.loader.
...
git-svn-id: http://code.djangoproject.com/svn/django/trunk@867 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2005-10-14 20:10:13 +00:00
Jacob Kaplan-Moss
b773bf45c3
Registered default_if_none filter from [859]
...
git-svn-id: http://code.djangoproject.com/svn/django/trunk@865 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2005-10-14 18:37:16 +00:00
Adrian Holovaty
ed1c9b2046
Fixed #622 -- Added default_if_none filter. Thanks, Eric
...
git-svn-id: http://code.djangoproject.com/svn/django/trunk@859 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2005-10-14 03:48:27 +00:00
Adrian Holovaty
f2088d456c
Fixed #618 -- Added DATABASE_PORT setting. Thanks, Esaj
...
git-svn-id: http://code.djangoproject.com/svn/django/trunk@858 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2005-10-14 03:43:01 +00:00
Adrian Holovaty
5f9fe6d403
Fixed #589 -- Added FilePathField. It's available as an ORM field and as a standalone field in django.core.formfields. Thanks, jay@skabber.com
...
git-svn-id: http://code.djangoproject.com/svn/django/trunk@846 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2005-10-12 04:14:21 +00:00
Wilson Miner
5f5db2c236
Added .hidden class to admin styles for future use.
...
git-svn-id: http://code.djangoproject.com/svn/django/trunk@827 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2005-10-10 21:49:31 +00:00
Jacob Kaplan-Moss
b8f70f8c94
Updated docs to reflect changes in [824]
...
git-svn-id: http://code.djangoproject.com/svn/django/trunk@826 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2005-10-10 20:23:53 +00:00
Jacob Kaplan-Moss
705a2c31c1
Fixed #604 - total number of objects in generic object_list view is now available as {{ hits }}
...
git-svn-id: http://code.djangoproject.com/svn/django/trunk@824 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2005-10-10 20:18:47 +00:00
Adrian Holovaty
29ff2bb4cb
Improved django.core.management.get_sql_delete to close database connection explicitly when it's done, to avoid locking issues
...
git-svn-id: http://code.djangoproject.com/svn/django/trunk@823 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2005-10-10 20:14:56 +00:00
Adrian Holovaty
b4e2d12b1f
Fixed #599 -- locmem cache now uses deepcopy() to prevent aliasing. Thanks, Hugo
...
git-svn-id: http://code.djangoproject.com/svn/django/trunk@821 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2005-10-10 13:56:39 +00:00
Adrian Holovaty
f258a8fce2
Fixed #600 -- decorator_from_middleware now handles process_view. Thanks, Hugo
...
git-svn-id: http://code.djangoproject.com/svn/django/trunk@820 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2005-10-10 13:51:58 +00:00
Adrian Holovaty
b6fd05e445
Added CACHE_MIDDLEWARE_KEY_PREFIX to global_settings
...
git-svn-id: http://code.djangoproject.com/svn/django/trunk@811 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2005-10-09 01:02:19 +00:00
Adrian Holovaty
d65526d688
Fixed #580 -- Added mega support for generating Vary headers, including some view decorators, and changed the CacheMiddleware to account for the Vary header. Also added GZipMiddleware and ConditionalGetMiddleware, which are no longer handled by CacheMiddleware itself. Also updated the cache.txt and middleware.txt docs. Thanks to Hugo and Sune for the excellent patches
...
git-svn-id: http://code.djangoproject.com/svn/django/trunk@810 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2005-10-09 00:55:08 +00:00
Adrian Holovaty
a5a89b5a43
Moved vary decorators from django.utils.cache to django.views.decorators.vary
...
git-svn-id: http://code.djangoproject.com/svn/django/trunk@809 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2005-10-09 00:37:56 +00:00
Adrian Holovaty
8aa98af6bb
Added django.utils.cache, from Hugo's #580 patch. Refs #580 .
...
git-svn-id: http://code.djangoproject.com/svn/django/trunk@808 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2005-10-08 23:19:21 +00:00
Adrian Holovaty
71564b4349
Added django.utils.decorators, from Hugo's #580 patch. Refs #580 .
...
git-svn-id: http://code.djangoproject.com/svn/django/trunk@807 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2005-10-08 21:44:37 +00:00
Adrian Holovaty
a933432a70
Fixed #473 -- Added a MysqlDebugWrapper to use for MySQL with DEBUG=True. It displays more informative error messages for MySQL warnings. Thanks for the patch, mlambert@gmail.com
...
git-svn-id: http://code.djangoproject.com/svn/django/trunk@806 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2005-10-08 21:00:25 +00:00
Adrian Holovaty
6beab20722
Fixed #374 -- Filtering by BooleanField now works in admin with SQLite. Thanks, davidschein
...
git-svn-id: http://code.djangoproject.com/svn/django/trunk@804 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2005-10-08 20:23:11 +00:00
Adrian Holovaty
d93c68ab5f
Fixed #586 -- Fixed bug in raw_id_admin caused by [785]. Thanks for the heads-up, slashzero
...
git-svn-id: http://code.djangoproject.com/svn/django/trunk@800 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2005-10-07 23:39:06 +00:00
Adrian Holovaty
c8930e3af4
Fixed #357 -- Added a '--pythonpath' option to django-admin. Thanks for the patch, Hugo
...
git-svn-id: http://code.djangoproject.com/svn/django/trunk@793 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2005-10-06 17:22:23 +00:00
Adrian Holovaty
485042b74d
Fixed #595 -- Fixed error when sorting API results descending with custom 'select' parameters. Thanks for the patch, Robert Wittams
...
git-svn-id: http://code.djangoproject.com/svn/django/trunk@792 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2005-10-06 15:52:30 +00:00
Adrian Holovaty
9fe02e6b65
Made raw_id_admin work with non-integer primary keys
...
git-svn-id: http://code.djangoproject.com/svn/django/trunk@790 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2005-10-06 14:43:07 +00:00
Adrian Holovaty
cb628c0cb7
Changed django.core.management to remove a couple of hard-coded slashes from os.path.join calls. Thanks, Stuart Langridge
...
git-svn-id: http://code.djangoproject.com/svn/django/trunk@789 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2005-10-06 14:30:35 +00:00
Adrian Holovaty
ab9aacd4db
Fixed #333 and #440 -- Split DEFAULT_MIME_TYPE setting into DEFAULT_CONTENT_TYPE and DEFAULT_CHARSET. Thanks, Maniac.
...
git-svn-id: http://code.djangoproject.com/svn/django/trunk@786 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2005-10-06 02:27:08 +00:00
Adrian Holovaty
261ab166ce
Fixed #586 -- raw_id_admin now works with non-integer primary keys
...
git-svn-id: http://code.djangoproject.com/svn/django/trunk@785 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2005-10-06 01:51:30 +00:00
Adrian Holovaty
8dda2aeaa3
Improved model validator to check admin.list_filter and type-check admin.list_display
...
git-svn-id: http://code.djangoproject.com/svn/django/trunk@784 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2005-10-06 01:41:54 +00:00
Adrian Holovaty
c3fa47edb8
Added USE_FLAT_PAGES setting, which defaults to True.
...
git-svn-id: http://code.djangoproject.com/svn/django/trunk@782 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2005-10-05 23:36:17 +00:00
Jacob Kaplan-Moss
837afc5a29
Changed default JING_PATH setting to be something that might actually be useful.
...
git-svn-id: http://code.djangoproject.com/svn/django/trunk@774 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2005-10-04 18:05:37 +00:00
Jacob Kaplan-Moss
6b2226bab8
Fixed #447 - the RSS framework can now output pub dates
...
git-svn-id: http://code.djangoproject.com/svn/django/trunk@743 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2005-09-30 13:58:30 +00:00
Adrian Holovaty
998fc72c0d
Changed [735] so that database-agnostic SQL always gets executed, even if database-specific SQL doesn't exist.
...
git-svn-id: http://code.djangoproject.com/svn/django/trunk@737 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2005-09-29 23:43:03 +00:00
Jacob Kaplan-Moss
27b1f69d79
Fixed #295 - added {{{forloop.revcounter}}} and {{{forloop.revcounter0}}} variables to for loops. Also updated the docs and added unit tests to verify correct behavior. Thanks, Clint.
...
git-svn-id: http://code.djangoproject.com/svn/django/trunk@736 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2005-09-29 23:34:29 +00:00
Jacob Kaplan-Moss
151b44c89a
Fixed #363 - django-admin sqlall now uses database-specific initial data files if they exist.
...
git-svn-id: http://code.djangoproject.com/svn/django/trunk@735 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2005-09-29 23:23:11 +00:00
Jacob Kaplan-Moss
022a03ab32
Fixed #541 - generic views now may take a {{{template_loader}}} argument so they can use a different template loader than Django's own. Thanks, Joao.
...
git-svn-id: http://code.djangoproject.com/svn/django/trunk@734 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2005-09-29 23:16:29 +00:00
Jacob Kaplan-Moss
bab70003fe
Fixed #574 - small CSS issue in admin tables. Thanks, Hein-Pieter
...
git-svn-id: http://code.djangoproject.com/svn/django/trunk@732 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2005-09-29 22:36:48 +00:00
Jacob Kaplan-Moss
2425907eac
Fixed #576 - popups no longer show "save & continue" buttons. Thanks, Hein-Pieter
...
git-svn-id: http://code.djangoproject.com/svn/django/trunk@731 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2005-09-29 22:34:17 +00:00
Adrian Holovaty
277cc05462
Changed django.core.template_file to use absolute import for 'template' module
...
git-svn-id: http://code.djangoproject.com/svn/django/trunk@721 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2005-09-29 15:06:53 +00:00
Adrian Holovaty
38649f4c3f
Fixed #537 -- Fixed typo in [718]. Thanks, Esaj
...
git-svn-id: http://code.djangoproject.com/svn/django/trunk@719 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2005-09-29 14:59:49 +00:00
Jacob Kaplan-Moss
22f27949bd
Fixed #537 ; thanks, fonso
...
git-svn-id: http://code.djangoproject.com/svn/django/trunk@718 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2005-09-29 13:29:12 +00:00
Jacob Kaplan-Moss
152d437305
Fixed #546 - render_to_string and render_to_response may now take lists of templates and use select_template instead of get_template. Thanks, hugo
...
git-svn-id: http://code.djangoproject.com/svn/django/trunk@717 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2005-09-29 13:26:49 +00:00
Jacob Kaplan-Moss
808b3f4b91
Fixed #106 - "Add another" now correctly works in IE - thanks, Paolo
...
git-svn-id: http://code.djangoproject.com/svn/django/trunk@716 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2005-09-29 13:02:34 +00:00
Adrian Holovaty
8a7189f38f
Fixed #501 -- Fixed block.super in multi-level templates, and added unit tests to confirm. Thanks for the patch, django@kieranholland.com
...
git-svn-id: http://code.djangoproject.com/svn/django/trunk@715 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2005-09-29 04:22:09 +00:00
Adrian Holovaty
26021249a4
Fixed #573 -- Added 'Add another' link to many-to-many fields in admin. Thanks, hp@syntomax.com
...
git-svn-id: http://code.djangoproject.com/svn/django/trunk@714 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2005-09-29 03:19:14 +00:00
Adrian Holovaty
c1a16d54b0
Fixed #553 -- Added django.core.meta.fields.Field.get_internal_type() hook, for creating custom meta.Field subclasses. Thanks, wojtek3
...
git-svn-id: http://code.djangoproject.com/svn/django/trunk@713 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2005-09-28 23:08:47 +00:00
Jacob Kaplan-Moss
cd34c163cc
Moved JING from django.core.validators into settings where it belongs. Fixes #568 .
...
git-svn-id: http://code.djangoproject.com/svn/django/trunk@712 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2005-09-27 16:34:10 +00:00
Adrian Holovaty
8b67f5f829
Fixed #567 -- Added HttpRequest.has_key() method. Thanks, wojtek3@brandlay.com
...
git-svn-id: http://code.djangoproject.com/svn/django/trunk@711 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2005-09-27 16:33:25 +00:00
Jacob Kaplan-Moss
2d1303bd68
Added EMAIL_SUBJECT_PREFIX setting so you can customize the "[Django]" prefix
...
on emails send with mail_admins/mail_managers. Refs #568 .
git-svn-id: http://code.djangoproject.com/svn/django/trunk@710 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2005-09-27 16:32:21 +00:00
Adrian Holovaty
cac99144fd
Fixed #544 -- Added xmlns and lang attributes to <html> tag in admin_templates/base.html, so that the admin works when served as application/xhtml+xml. Thanks, Sune Kirkeby
...
git-svn-id: http://code.djangoproject.com/svn/django/trunk@706 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2005-09-27 04:28:18 +00:00
Adrian Holovaty
c084005d58
Fixed #131 -- URLconfs that are 'included' now receive captured parameters from parent URLconfs. Thanks for the idea, jcernelli@gmail.com
...
git-svn-id: http://code.djangoproject.com/svn/django/trunk@704 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2005-09-27 04:24:19 +00:00
Adrian Holovaty
d86624877d
Fixed #213 -- Improved formfields.TimeField.html2python() so that it doesn't fail for None input
...
git-svn-id: http://code.djangoproject.com/svn/django/trunk@702 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2005-09-27 03:34:58 +00:00
Jacob Kaplan-Moss
9b72153139
Quick bug fix to [699] - fixes #515 .
...
git-svn-id: http://code.djangoproject.com/svn/django/trunk@701 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2005-09-26 16:30:14 +00:00
Jacob Kaplan-Moss
2a072999ca
Fixed type in static view URL pattern example (refs #428 )
...
git-svn-id: http://code.djangoproject.com/svn/django/trunk@700 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2005-09-26 13:38:49 +00:00
Jacob Kaplan-Moss
adce221d92
Added exception handlers to take care of the bugs with the file and db backends
...
(refs #515 ). Eugene, I'm going to leave #515 open; can you check the bug fixes
in this revision and mark the ticket as closed if you're satisfied? I don't
run Django in a threaded environment, so I'm having issues reproducing your
errors.
git-svn-id: http://code.djangoproject.com/svn/django/trunk@699 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2005-09-26 12:38:41 +00:00
Adrian Holovaty
c44fd057fa
Subclassed models now use their own class name (or explicitly defined verbose_name) as the verbose_name, not the parent's verbose_name. See also #558 and [697].
...
git-svn-id: http://code.djangoproject.com/svn/django/trunk@698 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2005-09-26 05:12:22 +00:00
Adrian Holovaty
60bb739d9e
Fixed #558 -- Subclassed models now use their own class name (or explicitly defined module_name) as the module_name, not the parent's module_name
...
git-svn-id: http://code.djangoproject.com/svn/django/trunk@697 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2005-09-26 05:03:40 +00:00
Jacob Kaplan-Moss
871ffbe7ee
Fixed #515 (again) - renamed "key" field in SQL cache to "cache_key" because
...
MySQL reserves "key".
git-svn-id: http://code.djangoproject.com/svn/django/trunk@695 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2005-09-26 03:14:37 +00:00
Adrian Holovaty
a978dbe779
Fixed #489 -- Changed MySQL backend to use longtext for XMLField
...
git-svn-id: http://code.djangoproject.com/svn/django/trunk@694 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2005-09-26 02:36:53 +00:00
Adrian Holovaty
9b68dbf95e
Fixed #469 -- Admin changelist no longer assumes ForeignKey has 'ordering' set when ordering by a ForeignKey field
...
git-svn-id: http://code.djangoproject.com/svn/django/trunk@693 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2005-09-25 22:27:23 +00:00
Jacob Kaplan-Moss
0fa1aa8711
Added a database-backed cache backend, along with a tool in django-admin to
...
create the necessary table structure. This closes #515 ; thanks again,
Eugene!
git-svn-id: http://code.djangoproject.com/svn/django/trunk@692 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2005-09-25 22:03:30 +00:00
Adrian Holovaty
68c0742008
Fixed #468 -- Model classes now get an accessor method to get the human-readable value for each field that has 'choices' set. Thanks, Robert
...
git-svn-id: http://code.djangoproject.com/svn/django/trunk@687 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2005-09-25 20:36:05 +00:00
Jacob Kaplan-Moss
272eab5cd8
Added "locmem" and "file" cache backends. "locmem" is a thread-safe local-memory cache, and "file" is a file-based cache.
...
This refs #515 ; much thanks to Eugene Lazutkin!
git-svn-id: http://code.djangoproject.com/svn/django/trunk@686 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2005-09-25 20:01:35 +00:00
Adrian Holovaty
26c4356e01
Improved model validator so that it checks for PIL if ImageFields are used
...
git-svn-id: http://code.djangoproject.com/svn/django/trunk@685 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2005-09-25 20:01:30 +00:00
Adrian Holovaty
530cdb5a8d
Fixed #550 -- Default admin template now checks user permissions, hiding apps/modules/actions for which the user doesn't have permissions. Thanks, Jason Huggins
...
git-svn-id: http://code.djangoproject.com/svn/django/trunk@684 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2005-09-25 19:08:44 +00:00
Jacob Kaplan-Moss
572ac3e7df
Fixed #428 -- added a "static pages" view. Note that this view should only be used for testing!
...
git-svn-id: http://code.djangoproject.com/svn/django/trunk@683 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2005-09-25 18:45:01 +00:00
Adrian Holovaty
c05cce5c52
Fixed #556 -- ManyToManyField join tables no longer assume the primary keys of both associated tables are integers. Also added unit tests to confirm.
...
git-svn-id: http://code.djangoproject.com/svn/django/trunk@682 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2005-09-25 18:29:59 +00:00
Adrian Holovaty
109a915775
Fixed #489 -- Changed MySQL backend to use longtext instead of text for TextField
...
git-svn-id: http://code.djangoproject.com/svn/django/trunk@680 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2005-09-24 17:37:30 +00:00
Adrian Holovaty
3dcdce4d63
Made a small improvement to django.views.core.flatfiles so that it only uses select_template if a custom template is available, so as not to hit the filesystem.
...
git-svn-id: http://code.djangoproject.com/svn/django/trunk@677 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2005-09-23 22:09:42 +00:00
Adrian Holovaty
a39e6c91b1
Changed django.views.core.flatfiles to use get_object_or_404
...
git-svn-id: http://code.djangoproject.com/svn/django/trunk@676 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2005-09-23 21:59:17 +00:00
Adrian Holovaty
3b49ecea63
Changed django.views.admin.template to use render_to_response, to cut on code
...
git-svn-id: http://code.djangoproject.com/svn/django/trunk@675 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2005-09-23 21:53:53 +00:00
Adrian Holovaty
a089b8f620
Changed django.views.admin.main to use get_object_or_404 and render_to_response, to cut on code
...
git-svn-id: http://code.djangoproject.com/svn/django/trunk@674 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2005-09-23 21:52:01 +00:00
Adrian Holovaty
58641f8068
Added django.core.extensions get_object_or_404 and get_list_or_404
...
git-svn-id: http://code.djangoproject.com/svn/django/trunk@673 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2005-09-23 21:40:04 +00:00
Adrian Holovaty
9562cbbc49
Fixed #543 -- Fixed broken mod_python support due to an import in the wrong place
...
git-svn-id: http://code.djangoproject.com/svn/django/trunk@672 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2005-09-23 13:24:52 +00:00
Adrian Holovaty
3d426607a8
Fixed #264 -- Added django.core.validators.isValidIPAddress4. Thanks, Hugo and Simon
...
git-svn-id: http://code.djangoproject.com/svn/django/trunk@671 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2005-09-23 02:02:15 +00:00
Adrian Holovaty
36fc73a45b
Fixed #333 -- Added DEFAULT_MIME_TYPE setting, and set it to 'text/html; charset=utf-8' by default
...
git-svn-id: http://code.djangoproject.com/svn/django/trunk@670 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2005-09-23 01:50:01 +00:00
Adrian Holovaty
39a907a051
Added request.session.delete_test_cookie()
...
git-svn-id: http://code.djangoproject.com/svn/django/trunk@669 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2005-09-23 01:28:44 +00:00
Adrian Holovaty
3dc1ede871
Fixed #236 -- Added HttpResponse.delete_cookie() method.
...
git-svn-id: http://code.djangoproject.com/svn/django/trunk@668 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2005-09-23 01:17:39 +00:00
Adrian Holovaty
8df0df620f
Removed a legacy 'TODO' from django.middleware.sessions
...
git-svn-id: http://code.djangoproject.com/svn/django/trunk@667 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2005-09-23 00:21:35 +00:00
Adrian Holovaty
1a5ada0101
Fixed #539 -- Added support for strides to 'slice' template filter, and made the code more efficient. Thanks, Esaj
...
git-svn-id: http://code.djangoproject.com/svn/django/trunk@666 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2005-09-23 00:12:24 +00:00
Adrian Holovaty
a7efb3939f
Converted load_and_render() calls to render_to_response() because of [664].
...
git-svn-id: http://code.djangoproject.com/svn/django/trunk@665 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2005-09-22 22:26:56 +00:00
Adrian Holovaty
62f036d67d
Added django.core.template_loader.render_to_string and django.core.extensions.render_to_response. django.core.extensions.load_and_render is deprecated in favor of render_to_response.
...
git-svn-id: http://code.djangoproject.com/svn/django/trunk@664 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2005-09-22 14:57:05 +00:00