Adrian Holovaty
c60e323e5d
new-admin and trunk: Normalized spacing differences in bin/validate.py between trunk and new-admin
...
git-svn-id: http://code.djangoproject.com/svn/django/trunk@1420 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2005-11-25 02:26:08 +00:00
Adrian Holovaty
baba996254
Added translation strings to django/contrib/admin/views/decorators.py. Taken from new-admin
...
git-svn-id: http://code.djangoproject.com/svn/django/trunk@1418 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2005-11-25 02:18:37 +00:00
Adrian Holovaty
f57e22495f
Tiny formatting changes to templatetags/i18n.py
...
git-svn-id: http://code.djangoproject.com/svn/django/trunk@1412 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2005-11-25 01:03:58 +00:00
Adrian Holovaty
16da4e69c4
Converted django.contrib.admin.templatetags.adminmedia to use simple_tag decorator
...
git-svn-id: http://code.djangoproject.com/svn/django/trunk@1411 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2005-11-25 01:00:52 +00:00
Adrian Holovaty
c5e5c0fc35
Fixed #625 -- Added template-tag decorators simple_tag and inclusion_tag. Taken from new-admin. Thanks, rjwittams
...
git-svn-id: http://code.djangoproject.com/svn/django/trunk@1410 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2005-11-25 00:54:40 +00:00
Georg Bauer
84eb80bbd7
and another little fix to the email sending stuff on password_reset - using Context works much better after importing it
...
git-svn-id: http://code.djangoproject.com/svn/django/trunk@1409 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2005-11-25 00:20:13 +00:00
Georg Bauer
ca683d8ca5
now really fixed the source formatting. brought to you by the magics of IRC-based pair programming
...
git-svn-id: http://code.djangoproject.com/svn/django/trunk@1407 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2005-11-25 00:04:06 +00:00
Georg Bauer
eff2a1fde2
just another small fix to the template_debug layout
...
git-svn-id: http://code.djangoproject.com/svn/django/trunk@1406 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2005-11-24 23:35:28 +00:00
Georg Bauer
73766b1f88
fixed debug view for templates so it starts counting with 1
...
git-svn-id: http://code.djangoproject.com/svn/django/trunk@1405 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2005-11-24 23:31:33 +00:00
Georg Bauer
798e6d5663
mail sending used Template.render, but passed only a dictionary, not a Context object
...
git-svn-id: http://code.djangoproject.com/svn/django/trunk@1404 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2005-11-24 23:10:24 +00:00
Georg Bauer
f0fbd43a57
small fix to the template_debug stuff, it was dropping last characters and didn't split the first line correctly
...
git-svn-id: http://code.djangoproject.com/svn/django/trunk@1403 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2005-11-24 22:57:04 +00:00
Adrian Holovaty
18c7ed74e4
Fixed #896 -- Fixed error in filesystem serve view in Windows. Thanks, Petar Marić and nesh
...
git-svn-id: http://code.djangoproject.com/svn/django/trunk@1402 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2005-11-24 22:41:05 +00:00
Adrian Holovaty
827ebe5368
Converted django/models/__init__.py to use unix newlines, not DOS
...
git-svn-id: http://code.djangoproject.com/svn/django/trunk@1401 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2005-11-24 21:26:04 +00:00
Adrian Holovaty
d922825156
Fixed #892 -- TemplateDoesNotExist errors now get a 'Template-loader postmortem' section on the pretty debug page. Thanks for the idea, David Ascher
...
git-svn-id: http://code.djangoproject.com/svn/django/trunk@1400 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2005-11-24 21:15:51 +00:00
Adrian Holovaty
22746d32a5
Added a get_template_sources generator function to filesystem and app_directories template loaders, so template-loader debugger can hook into it. Refs #892 .
...
git-svn-id: http://code.djangoproject.com/svn/django/trunk@1399 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2005-11-24 21:14:42 +00:00
Georg Bauer
c616d869ed
fixes #898 - updated 'sk' translation. Additional a small fix in the 'de' translation (removed a "fuzzy").
...
git-svn-id: http://code.djangoproject.com/svn/django/trunk@1398 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2005-11-24 18:31:49 +00:00
Georg Bauer
834e7d3482
fixed a typo in a trans template tag. Thx David Ascher (on IRC)
...
git-svn-id: http://code.djangoproject.com/svn/django/trunk@1397 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2005-11-24 18:30:31 +00:00
Jacob Kaplan-Moss
f286461e2a
Fixed small typo in User object; thanks David Ascher
...
git-svn-id: http://code.djangoproject.com/svn/django/trunk@1396 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2005-11-24 05:20:27 +00:00
Adrian Holovaty
28fd32318f
Updated django.utils.translation due to template changes from [1379]. From new-admin.
...
git-svn-id: http://code.djangoproject.com/svn/django/trunk@1388 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2005-11-24 03:32:26 +00:00
Georg Bauer
eab4a22596
changed the linebreaks_iter function to use str.find instead of re.finditer, because the latter one has problems with Python 2.3
...
git-svn-id: http://code.djangoproject.com/svn/django/trunk@1385 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2005-11-24 00:06:36 +00:00
Adrian Holovaty
39eac9bdff
Added Wilson's HTML tweaks to the template error screen
...
git-svn-id: http://code.djangoproject.com/svn/django/trunk@1381 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2005-11-23 23:15:52 +00:00
Adrian Holovaty
21f2d842fa
Added Wilson's CSS tweaks to the template error screen
...
git-svn-id: http://code.djangoproject.com/svn/django/trunk@1380 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2005-11-23 23:12:24 +00:00
Adrian Holovaty
5d863f1fbd
Fixed #603 -- Added template debugging errors to pretty error-page output, if TEMPLATE_DEBUG setting is True. Also refactored FilterParser for a significant speed increase and changed the template_loader interface so that it returns information about the loader. Taken from new-admin. Thanks rjwittams and crew
...
git-svn-id: http://code.djangoproject.com/svn/django/trunk@1379 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2005-11-23 23:10:17 +00:00
Adrian Holovaty
cfc5786d03
Fixed missing {% load i18n %} tag in comments FREE_COMMENT_FORM template
...
git-svn-id: http://code.djangoproject.com/svn/django/trunk@1378 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2005-11-23 21:56:21 +00:00
Adrian Holovaty
08a494c40d
Added better error handling for trailing periods in URLconf include()s
...
git-svn-id: http://code.djangoproject.com/svn/django/trunk@1376 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2005-11-23 21:44:48 +00:00
Adrian Holovaty
fce688cc74
Fixed #886 -- timesince utility now supports microseconds. Thanks, Aaron Swartz
...
git-svn-id: http://code.djangoproject.com/svn/django/trunk@1374 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2005-11-23 21:13:00 +00:00
Georg Bauer
87e0c2a712
updated all message files for translation hooks from [1368]
...
git-svn-id: http://code.djangoproject.com/svn/django/trunk@1371 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2005-11-23 17:31:52 +00:00
Georg Bauer
0e1ae73ad7
another update for the german translations file
...
git-svn-id: http://code.djangoproject.com/svn/django/trunk@1370 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2005-11-23 17:27:47 +00:00
Georg Bauer
8dc25efea8
updated message files for new translation targets (comments) and updated 'de' translation
...
git-svn-id: http://code.djangoproject.com/svn/django/trunk@1369 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2005-11-23 17:14:54 +00:00
Adrian Holovaty
6303141fbb
Applied translation strings from new-admin to contrib.admin.views.doc
...
git-svn-id: http://code.djangoproject.com/svn/django/trunk@1368 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2005-11-23 17:02:38 +00:00
Georg Bauer
6d6d90ce33
made the message when locale/ or conf/locale/ could not be found a bit more clear
...
git-svn-id: http://code.djangoproject.com/svn/django/trunk@1366 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2005-11-23 16:14:24 +00:00
Adrian Holovaty
d215cbd63a
Added translation strings to django.contrib.comments. Taken from new-admin.
...
git-svn-id: http://code.djangoproject.com/svn/django/trunk@1364 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2005-11-23 15:42:09 +00:00
Georg Bauer
55089cc02d
updated 'sk' translations. Fixes #881
...
git-svn-id: http://code.djangoproject.com/svn/django/trunk@1360 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2005-11-22 22:53:02 +00:00
Georg Bauer
cf84ba3b81
added translation hooks to timesince and updated message files to reflect them (and updated the 'de' translation). Additionally some smallish code changes to timesince (that weird zip thingy was just scary - and there is no need to .floor an integer division)
...
git-svn-id: http://code.djangoproject.com/svn/django/trunk@1359 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2005-11-22 21:45:54 +00:00
Georg Bauer
edad9cd687
preliminary fix for DATE_FORMAT and friends in 'cs' translation
...
git-svn-id: http://code.djangoproject.com/svn/django/trunk@1357 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2005-11-22 21:01:34 +00:00
Adrian Holovaty
1663623fad
Fixed grammar error in error message from [1355]
...
git-svn-id: http://code.djangoproject.com/svn/django/trunk@1356 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2005-11-22 19:41:43 +00:00
Adrian Holovaty
b58c820558
Fixed #879 -- Middleware loader now throws a better error for MIDDLEWARE_CLASSES value without a dot. Thanks, Noah Slater
...
git-svn-id: http://code.djangoproject.com/svn/django/trunk@1355 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2005-11-22 19:41:09 +00:00
Adrian Holovaty
ceecf0f7de
Fixed #874 -- Changed debug views to use text/html mime-type instead of DEFAULT_CONTENT_TYPE. Thanks, Sune
...
git-svn-id: http://code.djangoproject.com/svn/django/trunk@1351 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2005-11-22 14:22:02 +00:00
Adrian Holovaty
57981fb2fa
Changed views.defaults page_not_found and server_error to pass in optional template_name override
...
git-svn-id: http://code.djangoproject.com/svn/django/trunk@1350 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2005-11-22 05:47:51 +00:00
Adrian Holovaty
bedf10a98d
Fixed #598 -- Added {% include %} template tag. Added docs and unit tests. Thanks, rjwittams
...
git-svn-id: http://code.djangoproject.com/svn/django/trunk@1349 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2005-11-22 05:44:04 +00:00
Adrian Holovaty
8a2d9fc2f4
Tiny logic tightening in core.template.loader -- taken from new-admin
...
git-svn-id: http://code.djangoproject.com/svn/django/trunk@1347 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2005-11-22 05:11:14 +00:00
Adrian Holovaty
7911173ccc
Removed trailing slash in PROFILE_DATA_DIR in profiler-hotshot to match new-admin
...
git-svn-id: http://code.djangoproject.com/svn/django/trunk@1346 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2005-11-22 05:04:56 +00:00
Jacob Kaplan-Moss
b6ddc9d3c1
Fixed use of "_" in RelaxNGCompact validator which was conflicting with gettext tag
...
git-svn-id: http://code.djangoproject.com/svn/django/trunk@1340 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2005-11-22 03:39:39 +00:00
Georg Bauer
6c127e3883
fixes #869 - updated 'sk' translation
...
git-svn-id: http://code.djangoproject.com/svn/django/trunk@1339 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2005-11-21 22:34:24 +00:00
Jacob Kaplan-Moss
b4d379d5e1
Fixed #866 : static.serve view no longer opens files in text mode -- thanks, Eugene
...
git-svn-id: http://code.djangoproject.com/svn/django/trunk@1331 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2005-11-21 13:06:51 +00:00
Georg Bauer
a87d43f809
fixed a bug with some validators that used parameterized gettext_lazy strings and forced them to the default language because of the % operator. Now lazy string interpolation is used.
...
git-svn-id: http://code.djangoproject.com/svn/django/trunk@1330 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2005-11-21 11:10:19 +00:00
Georg Bauer
7b201f6e52
fixed a bug that prevented the unique validation to work
...
git-svn-id: http://code.djangoproject.com/svn/django/trunk@1329 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2005-11-21 11:09:36 +00:00
Georg Bauer
e4e28d907a
fixes #753 - ValidationError and CriticalValidationError now accept both strings and promises from gettext_lazy
...
git-svn-id: http://code.djangoproject.com/svn/django/trunk@1328 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2005-11-21 10:41:54 +00:00
Adrian Holovaty
a49fa746cd
Fixed #273 -- BACKWARDS-INCOMPATIBLE CHANGE -- Changed auth.User.password field to add support for other password encryption algorithms. Renamed password_md5 to password and changed field length from 32 to 128. See http://code.djangoproject.com/wiki/BackwardsIncompatibleChanges for upgrade information
...
git-svn-id: http://code.djangoproject.com/svn/django/trunk@1327 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2005-11-21 03:33:22 +00:00
Adrian Holovaty
f1a8869339
Fixed #800 -- Fixed bug in treatement of underscores and percent signs in SQLite backend. In order to do this, changed OPERATOR_MAPPING in DB backends to include a format string of the field value, because ESCAPE comes after the field value.
...
git-svn-id: http://code.djangoproject.com/svn/django/trunk@1326 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2005-11-21 02:46:15 +00:00
Adrian Holovaty
270377cb37
Fixed #861 -- Model validator now validates unique_together
...
git-svn-id: http://code.djangoproject.com/svn/django/trunk@1323 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2005-11-21 01:45:15 +00:00
Adrian Holovaty
7a80b2cc98
Fixed bug for OneToOneFields in the admin -- the manipulator_validator_unique wasn't doing the correct lookup
...
git-svn-id: http://code.djangoproject.com/svn/django/trunk@1322 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2005-11-21 01:39:18 +00:00
Adrian Holovaty
de770472b1
Fixed #527 -- Changed method_get_related() to use rel.get_related_field() instead of rel.field_name
...
git-svn-id: http://code.djangoproject.com/svn/django/trunk@1319 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2005-11-21 00:05:18 +00:00
Adrian Holovaty
fc0200857b
Gave formfields.EmailField a maxlength kwarg
...
git-svn-id: http://code.djangoproject.com/svn/django/trunk@1317 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2005-11-20 23:48:36 +00:00
Adrian Holovaty
d778326c52
Gave EmailField a get_internal_type() method and removed it from DATA_TYPES in all the database backends
...
git-svn-id: http://code.djangoproject.com/svn/django/trunk@1316 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2005-11-20 22:41:41 +00:00
Adrian Holovaty
928318faf9
Fixed #484 -- Model validator now raises an error for FloatFields without max_digits or decimal_places
...
git-svn-id: http://code.djangoproject.com/svn/django/trunk@1314 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2005-11-20 22:28:57 +00:00
Adrian Holovaty
6f249c856b
Fixed #527 and #768 -- Fixed longstanding bug with OneToOneFields. All unit tests now pass
...
git-svn-id: http://code.djangoproject.com/svn/django/trunk@1313 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2005-11-20 22:18:41 +00:00
Adrian Holovaty
3895a825a9
Added SESSION_SAVE_EVERY_REQUEST setting.
...
git-svn-id: http://code.djangoproject.com/svn/django/trunk@1303 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2005-11-20 17:16:13 +00:00
Adrian Holovaty
b5feff3963
Fixed #842 -- 500 error view no longer breaks for local variable named 'items'. Thanks, rjwittams
...
git-svn-id: http://code.djangoproject.com/svn/django/trunk@1297 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2005-11-20 05:17:15 +00:00
Adrian Holovaty
09f32294e8
Fixed #845 -- flatpages middleware no longer throws 404 exception for DEBUG=True. Thanks, Hugo
...
git-svn-id: http://code.djangoproject.com/svn/django/trunk@1296 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2005-11-20 04:55:57 +00:00
Georg Bauer
a81d16dada
fixes #837 : updated 'ru' translation
...
git-svn-id: http://code.djangoproject.com/svn/django/trunk@1283 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2005-11-18 20:11:50 +00:00
Jacob Kaplan-Moss
1da036040c
Added feed configurations for django.contrib.comments
...
git-svn-id: http://code.djangoproject.com/svn/django/trunk@1281 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2005-11-18 16:20:26 +00:00
Georg Bauer
9063955384
fixes #821 - updated slovak translation
...
git-svn-id: http://code.djangoproject.com/svn/django/trunk@1278 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2005-11-17 16:00:01 +00:00
Jacob Kaplan-Moss
3bbc2bd091
Fixed #825 ; thanks for the suggestions, aaronsw
...
git-svn-id: http://code.djangoproject.com/svn/django/trunk@1276 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2005-11-17 15:27:19 +00:00
Adrian Holovaty
33ffa72e40
Fixed #827 -- For admin list_display functions without a short_description, Django now converts underscores to spaces. Thanks, Aaron Swartz
...
git-svn-id: http://code.djangoproject.com/svn/django/trunk@1275 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2005-11-17 15:26:50 +00:00
Adrian Holovaty
56e40c5884
Fixed #815 -- 'select' keyword in DB API calls is now quoted correctly. Thanks, Hugo
...
git-svn-id: http://code.djangoproject.com/svn/django/trunk@1274 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2005-11-17 15:00:23 +00:00
Jacob Kaplan-Moss
bb505a87ac
Fixed #823 - cleaned up invalid HTML in debug error template. Thanks, Sune
...
git-svn-id: http://code.djangoproject.com/svn/django/trunk@1273 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2005-11-17 14:19:33 +00:00
Adrian Holovaty
b1603563a3
Fixed #822 -- Changed 500 view to use disclosure triangles instead of up/down arrows. Thanks, aaronsw
...
git-svn-id: http://code.djangoproject.com/svn/django/trunk@1272 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2005-11-17 03:10:03 +00:00
Georg Bauer
6be0210763
fixes #728 , updated no translation
...
git-svn-id: http://code.djangoproject.com/svn/django/trunk@1271 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2005-11-16 23:22:27 +00:00
Georg Bauer
6c83f8ed92
fixes #807 , #809 and #818 - updated translations for fr, zh_CN and ru.
...
git-svn-id: http://code.djangoproject.com/svn/django/trunk@1270 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2005-11-16 18:28:42 +00:00
Georg Bauer
eda3e2c99a
fixed a bug that happened only if the very first gettext call was an ngettext
...
git-svn-id: http://code.djangoproject.com/svn/django/trunk@1266 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2005-11-16 12:13:28 +00:00
Adrian Holovaty
464e84257d
Changed 'django-admin.py startapp' application template to use views.py instead of views package, for simplicity. Updated tutorial to reflect the change.
...
git-svn-id: http://code.djangoproject.com/svn/django/trunk@1258 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2005-11-16 02:00:23 +00:00
Adrian Holovaty
a469d821a1
Changed FormWrapper.fields (from [1253]) to be a property, so that it's only called when needed.
...
git-svn-id: http://code.djangoproject.com/svn/django/trunk@1257 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2005-11-16 00:33:50 +00:00
Jacob Kaplan-Moss
991039dd1e
Fixed #587 - iteration through formfields in a FormWrapper is now allowed (thanks, Boffbowsh)
...
git-svn-id: http://code.djangoproject.com/svn/django/trunk@1253 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2005-11-15 23:28:43 +00:00
Georg Bauer
14695dc02a
fixes #804 - updated slovak translation
...
git-svn-id: http://code.djangoproject.com/svn/django/trunk@1252 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2005-11-15 20:08:46 +00:00
Georg Bauer
29be17533a
added new danish translation
...
git-svn-id: http://code.djangoproject.com/svn/django/trunk@1250 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2005-11-15 18:37:41 +00:00
Jacob Kaplan-Moss
400cf5658d
Added django.views.generic.simple.redirect_to view for issuing simple redirects. Also updated direct_to_template to use render_to_response to be consistant with coding style, and documented the simple generic views.
...
git-svn-id: http://code.djangoproject.com/svn/django/trunk@1249 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2005-11-15 17:19:33 +00:00
Jacob Kaplan-Moss
dcb5bc32e0
Added django.views.generic.simple.direct_to_template which renders a given template along with any other params from the URL pattern.
...
git-svn-id: http://code.djangoproject.com/svn/django/trunk@1247 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2005-11-15 16:55:26 +00:00
Adrian Holovaty
2c61aff523
Fixed #796 -- Gave AnonymousUser a has_module_perms method.
...
git-svn-id: http://code.djangoproject.com/svn/django/trunk@1243 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2005-11-15 14:43:56 +00:00
Jacob Kaplan-Moss
d6aa904487
Fixed #799 : any setting with "SECRET" or "PASSWORD" in the name is escaped in the debug view output (this can be expanded if there are other "naughty words" we want to strip out in the future. Thanks, Ian
...
git-svn-id: http://code.djangoproject.com/svn/django/trunk@1242 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2005-11-15 14:35:24 +00:00
Georg Bauer
705a568854
added missing docstring to the blocktrans template tag
...
git-svn-id: http://code.djangoproject.com/svn/django/trunk@1241 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2005-11-15 13:51:31 +00:00
Jacob Kaplan-Moss
d0ec43298a
Fixed bug in postgresql backend that prevented the user of passwords with spaces in them.
...
Use pass *phrases*, folks, they're grrrrreat!
git-svn-id: http://code.djangoproject.com/svn/django/trunk@1236 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2005-11-15 05:52:25 +00:00
Jacob Kaplan-Moss
065dd334de
Added NOINDEX tag to debug 500 page (for robots)
...
git-svn-id: http://code.djangoproject.com/svn/django/trunk@1234 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2005-11-14 18:50:13 +00:00
Jacob Kaplan-Moss
0710243ea1
Added "pretty" error pages to be used when DEBUG is True.
...
git-svn-id: http://code.djangoproject.com/svn/django/trunk@1233 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2005-11-14 17:44:50 +00:00
Georg Bauer
1775ee7d08
fixes #790 and #791 - updated cs and sk translations
...
git-svn-id: http://code.djangoproject.com/svn/django/trunk@1232 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2005-11-14 15:34:47 +00:00
Georg Bauer
5319f285a6
fixes bug with blocktrans and parameters not actually doing the translation (thx. nesh for the report)
...
git-svn-id: http://code.djangoproject.com/svn/django/trunk@1230 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2005-11-14 13:29:38 +00:00
Georg Bauer
4decd32b0e
added the missing icenlandic message file (didn't svn add last time and didn't notice)
...
git-svn-id: http://code.djangoproject.com/svn/django/trunk@1229 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2005-11-14 13:28:42 +00:00
Adrian Holovaty
74865663bb
Fixed #787 -- High-level syndication framework now picks up author details. Also updated documentation. Thanks, mattycakes
...
git-svn-id: http://code.djangoproject.com/svn/django/trunk@1228 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2005-11-14 05:15:40 +00:00
Adrian Holovaty
7626cb0581
Improved Atom feed-generating framework to output <link rel='self'>. Added a feed_url hook to feedgenerator for this purpose, and changed the syndication Feed and views to use it. Also updated docs.
...
git-svn-id: http://code.djangoproject.com/svn/django/trunk@1227 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2005-11-14 04:59:20 +00:00
Adrian Holovaty
7b315b47aa
Fixed #784 -- Atom feeds now use RFC3339 datetime format
...
git-svn-id: http://code.djangoproject.com/svn/django/trunk@1226 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2005-11-14 04:28:31 +00:00
Adrian Holovaty
33b7ef290e
Fixed #786 -- Atom feeds now put links in a href element. Thanks, mattycakes
...
git-svn-id: http://code.djangoproject.com/svn/django/trunk@1225 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2005-11-14 04:16:09 +00:00
Adrian Holovaty
f6bf41e59a
Fixed #121 -- Django now quotes all names in SQL queries. Also added unit tests to confirm. Thanks, Robin Munn and Sune.
...
git-svn-id: http://code.djangoproject.com/svn/django/trunk@1224 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2005-11-14 01:44:35 +00:00
Adrian Holovaty
6e40d8c29f
Fixed #783 -- Added AnonymousUser.id = None. Thanks, EABinGA
...
git-svn-id: http://code.djangoproject.com/svn/django/trunk@1221 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2005-11-13 23:33:05 +00:00
Georg Bauer
fdf2738f0e
fixes #751 , added new icelandic translation (thx Dagur), updated the serbian translation and updated .po files for updated global_settings (because of the new language)
...
git-svn-id: http://code.djangoproject.com/svn/django/trunk@1217 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2005-11-13 19:38:31 +00:00
Georg Bauer
0bff994e25
added swedish to the global settings LANGUAGES
...
git-svn-id: http://code.djangoproject.com/svn/django/trunk@1216 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2005-11-13 18:02:55 +00:00
Georg Bauer
c9b3aa399c
fixes #751 - new swedish translation. thx Robin.
...
git-svn-id: http://code.djangoproject.com/svn/django/trunk@1215 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2005-11-13 17:59:51 +00:00
Adrian Holovaty
3273c981f8
Moved db.quote_name from a model-level function to a method of DatabaseWrapper for all database backends, so quote_name will be accessible in a 'from django.core.db import db' context
...
git-svn-id: http://code.djangoproject.com/svn/django/trunk@1213 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2005-11-13 05:11:41 +00:00
Adrian Holovaty
f7d2e9ea9f
Grammar cleanups for recent documentation and docstring changes.
...
git-svn-id: http://code.djangoproject.com/svn/django/trunk@1209 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2005-11-13 00:19:16 +00:00
Georg Bauer
f3319e45e4
fixes #109 - added translation possibilities for date and time formats (and updated translation files for the new message IDs)
...
git-svn-id: http://code.djangoproject.com/svn/django/trunk@1208 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2005-11-12 22:08:54 +00:00
Georg Bauer
367ce0ce92
fixes #764 - the TokenParser now respects string parameters to filters that contain blanks.
...
git-svn-id: http://code.djangoproject.com/svn/django/trunk@1207 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2005-11-12 21:45:01 +00:00
Georg Bauer
5f39a6a240
fixes #750 - languages for language-selection can now be restricted by setting LANGUAGES in the projects setting file to some subset of the global_settings provided list.
...
git-svn-id: http://code.djangoproject.com/svn/django/trunk@1204 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2005-11-12 21:27:46 +00:00
Georg Bauer
9da6eb5c26
fixed #777 and #775 - updated bn and sk translations
...
git-svn-id: http://code.djangoproject.com/svn/django/trunk@1203 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2005-11-12 20:57:20 +00:00
Adrian Holovaty
0a74c68eee
Fixed #778 -- Improved isExistingURL validator not to raise ValidationError for URLs that exist but require authorization. Thanks for the report, lakin wrecker.
...
git-svn-id: http://code.djangoproject.com/svn/django/trunk@1202 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2005-11-12 20:25:47 +00:00
Adrian Holovaty
1bf6dd7e0e
Added mime_type attributes to feedgenerator RssFeed and Atom1Feed, and made the syndication view use that mime_type. Thanks, James
...
git-svn-id: http://code.djangoproject.com/svn/django/trunk@1201 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2005-11-12 18:32:12 +00:00
Adrian Holovaty
944de9e9e6
Completely refactored legacy RSS framework to the new django.contrib.syndication package. Also added Atom support, changed the way feeds are registered and added documentation for the whole lot. This is backwards-incompatible, but the RSS framework had not yet been documented, so this should only affect tinkerers and WorldOnline. Fixes #329 , #498 , #502 and #554 . Thanks for various patches/ideas to alastair, ismael, hugo, eric moritz and garthk
...
git-svn-id: http://code.djangoproject.com/svn/django/trunk@1194 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2005-11-12 03:44:53 +00:00
Georg Bauer
d47c0a55a2
fixed the "recent actions" list not pointing to the objects detail page - backport of rjwittams fix from new_admin
...
git-svn-id: http://code.djangoproject.com/svn/django/trunk@1191 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2005-11-12 01:16:14 +00:00
Adrian Holovaty
da33b656ce
Added README.TXT to contrib.redirects and contrib.flatpages
...
git-svn-id: http://code.djangoproject.com/svn/django/trunk@1189 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2005-11-12 00:09:20 +00:00
Georg Bauer
6004fe9573
fix a problem that masks errors in settings files for some users - in those cases you only got "INSTALLED_APPS not defined", but in reality your settings file was broken.
...
git-svn-id: http://code.djangoproject.com/svn/django/trunk@1185 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2005-11-11 23:34:08 +00:00
Adrian Holovaty
1873c95b31
Added INSTALLED_APPS to global_settings. It's an empty tuple by default.
...
git-svn-id: http://code.djangoproject.com/svn/django/trunk@1184 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2005-11-11 22:56:18 +00:00
Georg Bauer
bf33198f43
updated sk translation and updated all messagefiles for new filenames/linenumbers due to flatpages/redirects reorganization
...
git-svn-id: http://code.djangoproject.com/svn/django/trunk@1183 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2005-11-11 22:10:35 +00:00
Georg Bauer
f1a0213302
added a little tool to fix message-ID duplicates after subversion merges (.po files sometimes merge in rather funny and interesting ways)
...
git-svn-id: http://code.djangoproject.com/svn/django/trunk@1179 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2005-11-11 21:35:41 +00:00
Georg Bauer
e780c71127
updated french translation
...
git-svn-id: http://code.djangoproject.com/svn/django/trunk@1177 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2005-11-11 20:09:38 +00:00
Adrian Holovaty
565a194702
Implemented quote_name() for ado_mssql DB backend. Thanks, Jakub Labath and Eugene Lazutkin
...
git-svn-id: http://code.djangoproject.com/svn/django/trunk@1176 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2005-11-11 19:11:11 +00:00
Adrian Holovaty
632b63ad76
Fixed #766 -- Custom methods in admin.list_display can now have an allow_tags attribute, which doesn't strip tags in the methods' output. Thanks, plisk
...
git-svn-id: http://code.djangoproject.com/svn/django/trunk@1174 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2005-11-11 17:15:24 +00:00
Adrian Holovaty
cb222e4d4e
Changed django-admin.py to display help if invoked with no arguments. Thanks, sopel
...
git-svn-id: http://code.djangoproject.com/svn/django/trunk@1173 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2005-11-11 16:42:41 +00:00
Georg Bauer
1fccca25d5
fixes #765 , #767 and #770 - new sk, cs and zh_CN translations. thx vlado, Radek and limodou.
...
git-svn-id: http://code.djangoproject.com/svn/django/trunk@1168 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2005-11-11 08:06:21 +00:00
Adrian Holovaty
e0ae394e64
Small bugfix to flatpages URLconf from [1166]
...
git-svn-id: http://code.djangoproject.com/svn/django/trunk@1167 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2005-11-11 05:13:57 +00:00
Adrian Holovaty
1b035c35d9
BACKWARDS-INCOMPATIBLE CHANGE -- Moved flatpages and redirects to standalone apps in django.contrib that are NOT installed by default. See http://code.djangoproject.com/wiki/BackwardsIncompatibleChanges for full migration information.
...
git-svn-id: http://code.djangoproject.com/svn/django/trunk@1166 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2005-11-11 04:45:05 +00:00
Jacob Kaplan-Moss
57d2a0f62c
Entries in INSTALLED_APPS can now be of the form "django.contrib.*", which
...
means every app under "django.contrib".
git-svn-id: http://code.djangoproject.com/svn/django/trunk@1163 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2005-11-11 02:52:16 +00:00
Adrian Holovaty
8613b74367
Fixed #763 -- cache system now catches OSError for os.remove() call. Thanks, Eugene
...
git-svn-id: http://code.djangoproject.com/svn/django/trunk@1158 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2005-11-10 16:37:45 +00:00
Georg Bauer
45cb728778
and now the actual translation files for bengali ...
...
git-svn-id: http://code.djangoproject.com/svn/django/trunk@1157 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2005-11-10 11:51:05 +00:00
Georg Bauer
2188f19286
fixes #762 - new bengali translation. Thx. b.ghose
...
git-svn-id: http://code.djangoproject.com/svn/django/trunk@1156 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2005-11-10 11:50:24 +00:00
Adrian Holovaty
e3e37ed120
Fixed #724 -- Ensured get_next_by_FOO() and get_previous_by_FOO() methods don't skip or duplicate any records in the case of duplicate values. Thanks for reporting the bug, mattycakes@gmail.com
...
git-svn-id: http://code.djangoproject.com/svn/django/trunk@1155 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2005-11-10 05:36:41 +00:00
Adrian Holovaty
68397a3654
Fixed #686 -- django-admin.py sqlreset and sqlclear no longer assume the admin app is installed.
...
git-svn-id: http://code.djangoproject.com/svn/django/trunk@1151 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2005-11-09 23:50:32 +00:00
Adrian Holovaty
2ef937d0fd
Fixed #683 -- Lightly refactored meta.fields.Field to add an attname attribute.
...
git-svn-id: http://code.djangoproject.com/svn/django/trunk@1150 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2005-11-09 23:37:41 +00:00
Adrian Holovaty
aae50fcce0
Fixed #758 -- HTML-escaped admin log items in admin index template. Thanks, Tom Tobin
...
git-svn-id: http://code.djangoproject.com/svn/django/trunk@1149 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2005-11-09 23:04:26 +00:00
Adrian Holovaty
95cc5772c3
Factored FORM_FIELD_ID_PREFIX out into a get_id() method in formfields.py -- thanks for the idea, rjwittams
...
git-svn-id: http://code.djangoproject.com/svn/django/trunk@1148 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2005-11-09 22:40:02 +00:00
Jacob Kaplan-Moss
31d18380f9
Fixed #761 ; thanks, Eugene
...
git-svn-id: http://code.djangoproject.com/svn/django/trunk@1143 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2005-11-09 18:29:58 +00:00
Adrian Holovaty
0b1d24c54d
Renamed enclosure_url, enclosure_length and enclosure_mime_type to give them an 'item_' prefix, in the new RSS framework
...
git-svn-id: http://code.djangoproject.com/svn/django/trunk@1141 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2005-11-09 17:49:57 +00:00
Georg Bauer
0496c113e0
fixed german translation
...
git-svn-id: http://code.djangoproject.com/svn/django/trunk@1137 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2005-11-09 10:34:30 +00:00
Georg Bauer
ed99b33b07
updated german language file
...
git-svn-id: http://code.djangoproject.com/svn/django/trunk@1136 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2005-11-09 10:32:46 +00:00
Georg Bauer
571d94fd3a
updated .po/.mo files for new message IDs and new line numbers
...
git-svn-id: http://code.djangoproject.com/svn/django/trunk@1135 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2005-11-09 10:27:41 +00:00
Georg Bauer
ce0876bcc4
added ro and cy to the LANGUAGES setting
...
git-svn-id: http://code.djangoproject.com/svn/django/trunk@1134 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2005-11-09 10:25:02 +00:00
Georg Bauer
87bf29f3b7
fixes #747 - new welsh translation. Thx Esaj.
...
git-svn-id: http://code.djangoproject.com/svn/django/trunk@1133 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2005-11-09 08:35:22 +00:00
Georg Bauer
0639a874ed
fixes #756 - added new romanian translation (thx. tibimicu).
...
git-svn-id: http://code.djangoproject.com/svn/django/trunk@1132 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2005-11-09 08:24:49 +00:00
Adrian Holovaty
4345866965
Added django.core.rss.Feed -- the new RSS interface. Refs #329 .
...
git-svn-id: http://code.djangoproject.com/svn/django/trunk@1131 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2005-11-09 00:50:01 +00:00
Adrian Holovaty
3aa236e10d
Changed RSS urlconf to accept any character for param -- not just slashes and alphanumerics
...
git-svn-id: http://code.djangoproject.com/svn/django/trunk@1130 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2005-11-09 00:40:47 +00:00
Adrian Holovaty
290040f7fe
Fixed #748 -- Improved error handling in make-messages.py. It no longer clobbers files on error. Thanks, Hugo
...
git-svn-id: http://code.djangoproject.com/svn/django/trunk@1120 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2005-11-07 14:21:31 +00:00
Adrian Holovaty
c767e0f4fe
Fixed #669 -- core.Site objects are now editable in the admin
...
git-svn-id: http://code.djangoproject.com/svn/django/trunk@1119 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2005-11-07 04:25:29 +00:00
Adrian Holovaty
de5ea0d879
Added Slovak (sk) translation. Thanks, Vlado
...
git-svn-id: http://code.djangoproject.com/svn/django/trunk@1118 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2005-11-07 03:42:38 +00:00
Adrian Holovaty
371f63c210
Fixed #742 -- Implemented 't' dateformat. Thanks, radek.
...
git-svn-id: http://code.djangoproject.com/svn/django/trunk@1116 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2005-11-06 23:53:13 +00:00
Adrian Holovaty
d4df074d41
Fixed #109 -- Created DATE_FORMAT, DATETIME_FORMAT and TIME_FORMAT settings.
...
git-svn-id: http://code.djangoproject.com/svn/django/trunk@1115 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2005-11-06 23:49:03 +00:00
Adrian Holovaty
5defabca11
Reordered MEDIA_ROOT and MEDIA_URL in global_settings so they're not in the COMMENTS section
...
git-svn-id: http://code.djangoproject.com/svn/django/trunk@1109 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2005-11-06 23:16:24 +00:00
Adrian Holovaty
a218cf5798
Fixed #281 -- Made e-mail address validation much more strict and accurate.
...
git-svn-id: http://code.djangoproject.com/svn/django/trunk@1106 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2005-11-06 22:59:18 +00:00
Adrian Holovaty
0292578745
Fixed #312 -- Fixed bug when adding images in the admin when edit_inline and width field is set. Thanks, nichyoung
...
git-svn-id: http://code.djangoproject.com/svn/django/trunk@1104 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2005-11-06 22:46:56 +00:00
Adrian Holovaty
4947ae42b8
Fixed #732 -- Updated de translation. Thanks, lucky@knup.de
...
git-svn-id: http://code.djangoproject.com/svn/django/trunk@1102 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2005-11-06 22:34:16 +00:00
Adrian Holovaty
611015d858
Fixed #738 -- Updated cs translation. Thanks, radek svarz
...
git-svn-id: http://code.djangoproject.com/svn/django/trunk@1101 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2005-11-06 22:32:19 +00:00
Adrian Holovaty
6d1b5b3b1a
Fixed #727 -- Fixed leftover %() syntax in password_reset_email template. Thanks, Hugo
...
git-svn-id: http://code.djangoproject.com/svn/django/trunk@1100 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2005-11-06 22:30:01 +00:00
Adrian Holovaty
557aa1572c
Fixed #741 -- Made models.core.Session.get_decoded() fault-tolerant, in case of funky pickled data. Thanks, kieranholland
...
git-svn-id: http://code.djangoproject.com/svn/django/trunk@1099 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2005-11-06 22:28:05 +00:00
Adrian Holovaty
e19c9ccfcb
Reworded docstrings and settings documentation from [1068]
...
git-svn-id: http://code.djangoproject.com/svn/django/trunk@1098 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2005-11-06 22:22:02 +00:00
Adrian Holovaty
b14a50bb35
Fixed #729 -- prepopulate_from (urlify.js) now removes characters that aren't a-z, 0-9 or spaces
...
git-svn-id: http://code.djangoproject.com/svn/django/trunk@1097 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2005-11-06 22:02:40 +00:00
Adrian Holovaty
7e28ba0b4c
Tiny docstring cleanup in middleware/common.py
...
git-svn-id: http://code.djangoproject.com/svn/django/trunk@1096 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2005-11-06 21:55:57 +00:00
Adrian Holovaty
d5368d341c
Fixed #740 -- Abstracted hard-coded slash in utils/translation.py. Thanks, radek. Also cleaned up docstrings a bit.
...
git-svn-id: http://code.djangoproject.com/svn/django/trunk@1095 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2005-11-06 21:55:39 +00:00
Adrian Holovaty
f6ce403140
Small docstring change to django.views.static
...
git-svn-id: http://code.djangoproject.com/svn/django/trunk@1094 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2005-11-06 21:54:37 +00:00
Adrian Holovaty
24f666656f
Fixed #737 -- Changed validators.isValidIPAddress4 to use a single regex. Thanks, mattimustang
...
git-svn-id: http://code.djangoproject.com/svn/django/trunk@1093 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2005-11-06 17:55:39 +00:00
Adrian Holovaty
181ee4ae31
Added meta.Admin list_select_related option, which specifies to use select_related in the change-list query
...
git-svn-id: http://code.djangoproject.com/svn/django/trunk@1092 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2005-11-05 18:14:17 +00:00
Adrian Holovaty
8ee33da585
Fixed #734 -- Fixed namespace bug in validators.isValidIPAddress4. Thanks, Hugo and mflanagan
...
git-svn-id: http://code.djangoproject.com/svn/django/trunk@1091 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2005-11-05 17:59:16 +00:00
Adrian Holovaty
c55bb7ee40
Fixed #728 -- Updated Norwegian translation. Thanks, Espen
...
git-svn-id: http://code.djangoproject.com/svn/django/trunk@1084 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2005-11-04 16:40:35 +00:00
Adrian Holovaty
a734759fa0
Renamed language no_NB to no
...
git-svn-id: http://code.djangoproject.com/svn/django/trunk@1083 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2005-11-04 16:09:38 +00:00
Adrian Holovaty
9d188cf3bb
Added Norwegian translation -- Thanks Espen
...
git-svn-id: http://code.djangoproject.com/svn/django/trunk@1080 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2005-11-04 15:30:15 +00:00
Adrian Holovaty
0ac931f38c
Companion .mo-file checkin to [1077]
...
git-svn-id: http://code.djangoproject.com/svn/django/trunk@1078 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2005-11-04 14:56:12 +00:00
Adrian Holovaty
9f92a2b92b
Renamed 'Traditional Chinese' to 'Simplified Chinese' and updated po files
...
git-svn-id: http://code.djangoproject.com/svn/django/trunk@1077 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2005-11-04 14:53:24 +00:00
Adrian Holovaty
d35d1f1581
Fixed bug in django.utils.decorators.decorator_from_middleware -- it wasn't raising exceptions. Refs #641
...
git-svn-id: http://code.djangoproject.com/svn/django/trunk@1076 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2005-11-04 14:48:57 +00:00
Jacob Kaplan-Moss
5cf8f68423
Merged i18n branch into the trunk! Fixes #65 , and perhaps some others. NB: this means that the i18n branch is now obsolete and will be made read-only.
...
git-svn-id: http://code.djangoproject.com/svn/django/trunk@1068 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2005-11-04 04:59:46 +00:00
Jacob Kaplan-Moss
91a283583c
Made floatformat filter not choke on non-floats
...
git-svn-id: http://code.djangoproject.com/svn/django/trunk@1050 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2005-11-02 19:01:27 +00:00
Adrian Holovaty
23bb8c4a4b
Added quote_name hook for each database backend. Refs #121 . Thanks, Robin Munn -- we miss you.
...
git-svn-id: http://code.djangoproject.com/svn/django/trunk@1039 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2005-11-01 01:32:54 +00:00
Adrian Holovaty
c65332d409
Updated out-of-date docstring in django/core/db/__init__.py
...
git-svn-id: http://code.djangoproject.com/svn/django/trunk@1038 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2005-11-01 01:28:42 +00:00
Adrian Holovaty
cee6faf43e
Fixed #505 -- ssi template tag now displays a message instead of failing silently if DEBUG=True. Thanks, Manuzhai
...
git-svn-id: http://code.djangoproject.com/svn/django/trunk@1037 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2005-11-01 01:11:36 +00:00
Adrian Holovaty
7136eb8f3a
Fixed #507 -- Changed MySQL backend so that it uses 'LIKE BINARY' for case-sensitive comparisons -- contains, startswith and endswith. Thanks, Simon
...
git-svn-id: http://code.djangoproject.com/svn/django/trunk@1036 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2005-11-01 01:08:13 +00:00
Adrian Holovaty
390666ac2b
Fixed #508 -- Added support for 'expires' in cookies and changed session middleware to set 'expires' in addition to 'max_age'. Thanks, mark@junklight.com
...
git-svn-id: http://code.djangoproject.com/svn/django/trunk@1035 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2005-11-01 01:02:07 +00:00
Adrian Holovaty
cbe2426369
Made several grammar fixes to cache documentation from [1020]
...
git-svn-id: http://code.djangoproject.com/svn/django/trunk@1030 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2005-10-31 03:14:57 +00:00
Jacob Kaplan-Moss
7e0719efa6
Fixed #675 : PasswordFields now respect length and maxlength params
...
git-svn-id: http://code.djangoproject.com/svn/django/trunk@1022 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2005-10-29 17:10:51 +00:00
Jacob Kaplan-Moss
2822f71d08
Fixed #140 : memcached backends may now use multiple servers
...
git-svn-id: http://code.djangoproject.com/svn/django/trunk@1021 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2005-10-29 17:05:19 +00:00
Jacob Kaplan-Moss
f12e324332
Fixed #612 - added cache control headers (thanks, hugo)
...
git-svn-id: http://code.djangoproject.com/svn/django/trunk@1020 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2005-10-29 17:00:20 +00:00
Adrian Holovaty
67d490a61d
Fixed #701 -- contrib.admin.views.doc now uses get_internal_type()
...
git-svn-id: http://code.djangoproject.com/svn/django/trunk@1019 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2005-10-28 03:48:33 +00:00
Adrian Holovaty
b5a6ff5bdd
Fixed #488 -- removetags template filter now removes tags without a space before the final slash
...
git-svn-id: http://code.djangoproject.com/svn/django/trunk@1018 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2005-10-28 03:45:51 +00:00
Adrian Holovaty
c6f375fd11
Fixed #700 -- urlify.js now uses hyphens instead of underscores
...
git-svn-id: http://code.djangoproject.com/svn/django/trunk@1017 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2005-10-28 03:41:39 +00:00
Jacob Kaplan-Moss
e7c870c36e
Fixed #703 : added decorators to require that view be called with a given HTTP REQUEST_METHOD
...
git-svn-id: http://code.djangoproject.com/svn/django/trunk@1016 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2005-10-28 01:30:30 +00:00
Jacob Kaplan-Moss
c3377c1eae
Fixed shortcut redirect handler
...
git-svn-id: http://code.djangoproject.com/svn/django/trunk@1012 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2005-10-26 14:01:53 +00:00
Adrian Holovaty
d310b108f4
Changed global_settings.TEMPLATE_LOADERS to be same as default project_template.settings.TEMPLATE_LOADERS
...
git-svn-id: http://code.djangoproject.com/svn/django/trunk@1011 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2005-10-25 02:02:58 +00:00
Adrian Holovaty
3ad82eff77
Improved autoreloader to ignore files that might be in eggs. Refs #596
...
git-svn-id: http://code.djangoproject.com/svn/django/trunk@1010 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2005-10-25 02:01:10 +00:00
Adrian Holovaty
5c3d1ec163
Fixed #677 -- db.queries is now reset per request. Thanks, seancazzell
...
git-svn-id: http://code.djangoproject.com/svn/django/trunk@1009 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2005-10-25 01:51:57 +00:00
Adrian Holovaty
1ed99862c6
Fixed #679 -- 'collapse' admin row class is now processed correctly when more than one tuple is in the admin.fields list. Thanks, malcolm
...
git-svn-id: http://code.djangoproject.com/svn/django/trunk@1008 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2005-10-25 01:47:34 +00:00
Adrian Holovaty
e0d2793b7b
Fixed #687 -- Fixed bug in floatformat template filter and added unit tests. Thanks, Sune
...
git-svn-id: http://code.djangoproject.com/svn/django/trunk@1007 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2005-10-25 01:44:14 +00:00
Adrian Holovaty
c604de5a5d
Added 'django-admin.py installperms' command
...
git-svn-id: http://code.djangoproject.com/svn/django/trunk@1005 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2005-10-23 22:43:24 +00:00
Adrian Holovaty
43ad69e24e
Fixed #684 -- Fixed login_required and user_passes_test decorators. Thanks, rjwittams
...
git-svn-id: http://code.djangoproject.com/svn/django/trunk@1004 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2005-10-23 22:42:44 +00:00
Adrian Holovaty
17f62269c2
Fixed #479 -- Implemented time-zone formats in dateformat. Thanks, Sune
...
git-svn-id: http://code.djangoproject.com/svn/django/trunk@992 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2005-10-22 21:37:59 +00:00
Adrian Holovaty
f82e64c6b2
Fixed #681 -- get_in_bulk no longer assumes PK fields are called id. Also added unit tests to confirm. Thanks, Jeremy Dunck
...
git-svn-id: http://code.djangoproject.com/svn/django/trunk@991 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2005-10-22 21:18:53 +00:00
Adrian Holovaty
4f47ef85f8
Added django.views.decorators.auth.user_passes_test, which is a more generic hook into authentication based on a test. Refactored login_required to use user_passes_test
...
git-svn-id: http://code.djangoproject.com/svn/django/trunk@988 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2005-10-22 00:04:55 +00:00
Adrian Holovaty
cc3635d62f
Fixed #663 -- app_directories template loader no longer assumes a dot in the app name. Thanks, Sune
...
git-svn-id: http://code.djangoproject.com/svn/django/trunk@985 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2005-10-20 23:16:45 +00:00
Adrian Holovaty
81cbf27a13
Fixed #668 -- Changed default site from mysite.com to example.com. Thanks, Ian
...
git-svn-id: http://code.djangoproject.com/svn/django/trunk@984 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2005-10-20 22:58:33 +00:00
Adrian Holovaty
d8b8367494
Fixed #658 -- Fixed JavaScript calendar widget in IE. Thanks for the patch, kieranholland
...
git-svn-id: http://code.djangoproject.com/svn/django/trunk@977 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2005-10-20 13:16:46 +00:00
Adrian Holovaty
a102942d7a
Fixed #654 -- Fixed bug in [969]. Thanks, korpios@gmail.com
...
git-svn-id: http://code.djangoproject.com/svn/django/trunk@976 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2005-10-20 13:13:55 +00:00
Adrian Holovaty
4c327b9c86
Lightly refactored django.utils.dateformat to make it use less code. Also integrated some of Sune's improvements from the #479 patch, including support for backslash escaping. Also vastly improved template docs for the {% now %} tag
...
git-svn-id: http://code.djangoproject.com/svn/django/trunk@969 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2005-10-20 05:30:11 +00:00
Adrian Holovaty
539e53ccf1
Fixed #317 -- SlugField now accepts hyphens. Thanks, Sune
...
git-svn-id: http://code.djangoproject.com/svn/django/trunk@968 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2005-10-20 04:20:52 +00:00
Adrian Holovaty
989fcce02a
Fixed template-name bug for admin doc templates in [948]
...
git-svn-id: http://code.djangoproject.com/svn/django/trunk@959 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2005-10-19 16:29:20 +00:00
Adrian Holovaty
9de01b157f
Removed duplicate LANGUAGE_CODE from project_template/settings. Thanks, EspenG
...
git-svn-id: http://code.djangoproject.com/svn/django/trunk@958 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2005-10-19 16:10:31 +00:00
Adrian Holovaty
56022ea314
Added TIME_ZONE and LANGUAGE_CODE to stock settings file created by 'django-admin startproject
...
git-svn-id: http://code.djangoproject.com/svn/django/trunk@957 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2005-10-19 16:03:24 +00:00
Adrian Holovaty
ed2f2419a1
Fixed #647 -- Fixed cache middleware not to expect _cache_update_cache, in case of 404s and 500s. Thanks, Eugene
...
git-svn-id: http://code.djangoproject.com/svn/django/trunk@954 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2005-10-19 13:44:55 +00:00
Adrian Holovaty
c548955d29
Fixed admin template bug from [948]
...
git-svn-id: http://code.djangoproject.com/svn/django/trunk@951 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2005-10-19 01:18:53 +00:00
Adrian Holovaty
079752fe88
Fixed #641 -- Fixed re-raise in django.core.handlers.base. Thanks, Sune
...
git-svn-id: http://code.djangoproject.com/svn/django/trunk@949 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2005-10-19 01:16:57 +00:00
Adrian Holovaty
f07e5d4f5d
Fixed #627 -- BACKWARDS-INCOMPATIBLE CHANGE. Admin is now an app, not a middleware. See BackwardsIncompatibleChanges for a full list of changes and information on how to update your code.
...
git-svn-id: http://code.djangoproject.com/svn/django/trunk@948 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2005-10-19 01:09:05 +00:00
Adrian Holovaty
fd3d579179
Added django.contrib.admin.templatetags. Refs #627
...
git-svn-id: http://code.djangoproject.com/svn/django/trunk@946 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2005-10-18 23:15:47 +00:00
Adrian Holovaty
0dc843b3c6
Added contrib.admin.models.admin, which contains LogEntry (from models.auth). It still exists in models.auth, temporarily
...
git-svn-id: http://code.djangoproject.com/svn/django/trunk@945 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2005-10-18 22:55:23 +00:00
Adrian Holovaty
1bb40e75c7
Removed legacy TODO comment from django.models.auth
...
git-svn-id: http://code.djangoproject.com/svn/django/trunk@938 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2005-10-18 15:41:45 +00:00
Adrian Holovaty
1f227df92b
Added DATA_TYPES_REVERSE to ado_mssql backend
...
git-svn-id: http://code.djangoproject.com/svn/django/trunk@937 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2005-10-18 14:33:32 +00:00
Adrian Holovaty
8863e5dd11
Changed get_random_function_sql for ado_mssql backend to use RAND(), which is correct. Thanks, Jakub Labath
...
git-svn-id: http://code.djangoproject.com/svn/django/trunk@936 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2005-10-18 14:02:46 +00:00
Adrian Holovaty
b890e37ada
Added get_table_list() to ado_mssql backend
...
git-svn-id: http://code.djangoproject.com/svn/django/trunk@935 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2005-10-18 13:59:58 +00:00
Adrian Holovaty
d5f32aa008
Changed contrib.admin.views.main to use staff_member_required_decorator. Refs #627 . Note that, by this point, AdminUserRequired middleware is redundant -- but nothing is backwards-incompatible yet.
...
git-svn-id: http://code.djangoproject.com/svn/django/trunk@931 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2005-10-18 05:23:07 +00:00
Adrian Holovaty
c2ffd62d89
Changed django.contrib.admin.views.main to use template.loader instead of template_loader
...
git-svn-id: http://code.djangoproject.com/svn/django/trunk@930 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2005-10-18 05:18:50 +00:00
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
Adrian Holovaty
17418cd982
Added django.core.validators.isValidHTML
...
git-svn-id: http://code.djangoproject.com/svn/django/trunk@663 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2005-09-22 14:51:57 +00:00
Adrian Holovaty
a269a2058a
Converted django.contrib.comments.views.* to use load_and_render
...
git-svn-id: http://code.djangoproject.com/svn/django/trunk@661 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2005-09-22 05:32:47 +00:00
Adrian Holovaty
4175aec30f
Converted django.views.admin.doc to use load_and_render
...
git-svn-id: http://code.djangoproject.com/svn/django/trunk@660 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2005-09-22 05:23:41 +00:00
Adrian Holovaty
aec3e32c7b
Converted django.views.auth.login to use load_and_render
...
git-svn-id: http://code.djangoproject.com/svn/django/trunk@659 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2005-09-22 05:18:23 +00:00
Adrian Holovaty
48f0820337
Converted django.views.registration.passwords to use load_and_render -- it's less code
...
git-svn-id: http://code.djangoproject.com/svn/django/trunk@658 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2005-09-22 05:13:15 +00:00
Adrian Holovaty
a6946dac54
Fixed #533 -- Fixed bug when using custom context_instance in load_and_render(). Thanks, Brantley
...
git-svn-id: http://code.djangoproject.com/svn/django/trunk@657 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2005-09-21 21:41:37 +00:00
Adrian Holovaty
0505000533
Changed django.core.extensions.load_and_render to take context_instance instead of context_class keyword arg, so DjangoContext can be used
...
git-svn-id: http://code.djangoproject.com/svn/django/trunk@656 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2005-09-21 18:18:04 +00:00
Adrian Holovaty
63994a9801
Added django.core.extensions.load_and_render, which factors out the boilerplate of loading a template, rendering a context and returning an HttpResponse
...
git-svn-id: http://code.djangoproject.com/svn/django/trunk@655 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2005-09-21 17:24:33 +00:00
Adrian Holovaty
bb87b2163c
Fixed #525 -- admin.list_filter now works with ManyToManyFields whose primary keys are integers and are not called 'id'. Thanks for the bug report, nesh
...
git-svn-id: http://code.djangoproject.com/svn/django/trunk@654 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2005-09-20 03:46:11 +00:00
Adrian Holovaty
7dfb86724d
Improved model validator so that it validates admin.list_display values
...
git-svn-id: http://code.djangoproject.com/svn/django/trunk@650 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2005-09-20 02:48:25 +00:00
Adrian Holovaty
e7982bb5b0
Fixed #491 -- Non-user connections are now supported for PostgreSQL. Thanks, jafo@tummy.com
...
git-svn-id: http://code.djangoproject.com/svn/django/trunk@647 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2005-09-19 01:23:03 +00:00
Adrian Holovaty
bcc2873c70
Companion django.core.extensions checkin to [644]
...
git-svn-id: http://code.djangoproject.com/svn/django/trunk@645 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2005-09-17 23:08:24 +00:00
Adrian Holovaty
1e910f94d2
Fixed mutable-argument bug in template.Context init. Thanks, Luke
...
git-svn-id: http://code.djangoproject.com/svn/django/trunk@644 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2005-09-17 23:06:16 +00:00
Jacob Kaplan-Moss
526de4987a
Fixed "unique" validator for fields with relations.
...
git-svn-id: http://code.djangoproject.com/svn/django/trunk@643 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2005-09-15 16:54:46 +00:00
Adrian Holovaty
9a24228a3e
Fixed #502 -- Added 'categories' keyword argument to RSS framework. Thanks, eugene
...
git-svn-id: http://code.djangoproject.com/svn/django/trunk@641 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2005-09-14 17:39:47 +00:00
Adrian Holovaty
f55f98f989
Fixed #500 -- Created a TEMPLATE_FILE_EXTENSION setting that lets you override the default '.html' if you want to use a different extension (or none at all) for templates
...
git-svn-id: http://code.djangoproject.com/svn/django/trunk@640 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2005-09-14 01:24:36 +00:00
Adrian Holovaty
adaf046591
Fixed metasystem bug when using get_related_many_to_many() method with a custom-named primary key. Thanks, stane
...
git-svn-id: http://code.djangoproject.com/svn/django/trunk@639 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2005-09-13 03:48:06 +00:00
Adrian Holovaty
84560c7f84
Removed Lawrence-specific stuff in utils.text.recapitalize. Refs #467
...
git-svn-id: http://code.djangoproject.com/svn/django/trunk@638 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2005-09-13 03:31:34 +00:00
Adrian Holovaty
99e0f7a932
Removed utils.text.fix_microsoft_characters, which didn't actually do anything. Refs #467 .
...
git-svn-id: http://code.djangoproject.com/svn/django/trunk@637 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2005-09-13 03:28:34 +00:00
Adrian Holovaty
6e034a831a
Fixed #481 -- Added all other HTTP status codes to WSGI backend. Thanks, eugene
...
git-svn-id: http://code.djangoproject.com/svn/django/trunk@636 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2005-09-13 03:21:44 +00:00
Adrian Holovaty
63e512f25f
Fixed #485 -- Typo in utils/feedgenerator.py. Thanks, eugene@lazutkin.com
...
git-svn-id: http://code.djangoproject.com/svn/django/trunk@635 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2005-09-11 15:20:05 +00:00
Adrian Holovaty
095305cb44
Fixed #486 -- Fixed bug in template filter parsing in edge cases, and added unit tests. Thanks, Simon
...
git-svn-id: http://code.djangoproject.com/svn/django/trunk@634 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2005-09-11 15:18:04 +00:00
Adrian Holovaty
f46402bc90
Made 'django-admin.py init' more robust
...
git-svn-id: http://code.djangoproject.com/svn/django/trunk@632 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2005-09-06 22:14:40 +00:00
Adrian Holovaty
e5a801590a
Improved model validator to check for upload_to attribute in FileFields
...
git-svn-id: http://code.djangoproject.com/svn/django/trunk@622 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2005-09-05 15:04:20 +00:00
Adrian Holovaty
fc9d457686
Fixed #458 -- Added /r/ to default admin urlconf
...
git-svn-id: http://code.djangoproject.com/svn/django/trunk@620 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2005-09-04 18:20:57 +00:00
Adrian Holovaty
66d4db7b09
Fixed #351 -- views.generic.list_detail.object_list now respects allow_empty when paginating. Thanks, kmh
...
git-svn-id: http://code.djangoproject.com/svn/django/trunk@618 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2005-09-02 22:54:12 +00:00
Adrian Holovaty
5c22b8b4b7
Improved model validator to make sure prepopulate_from is a list or tuple
...
git-svn-id: http://code.djangoproject.com/svn/django/trunk@617 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2005-09-02 22:50:53 +00:00
Adrian Holovaty
ccbea84834
Fixed #404 -- Fixed random ordering in MySQL by abstracting random function into db backend modules. Thanks, mattycakes@gmail.com
...
git-svn-id: http://code.djangoproject.com/svn/django/trunk@615 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2005-09-02 20:46:00 +00:00
Adrian Holovaty
5bdf1da730
Fixed #394 -- Trailing-slash redirects now retain duplicate name-value query-string pairs, instead of the first of each pair. Added a QueryDict.urlencode() method to accomplish this. Updated the docs. Thanks for the good catch, mlambert
...
git-svn-id: http://code.djangoproject.com/svn/django/trunk@613 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2005-09-02 19:39:47 +00:00
Adrian Holovaty
64d3da63ae
Fixed #429 -- Small cleanup to code in utils/html.py. Thanks, pb@e-scribe.com
...
git-svn-id: http://code.djangoproject.com/svn/django/trunk@611 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2005-09-02 18:51:14 +00:00
Adrian Holovaty
3aa1276bff
Fixed #453 -- 'django-admin install' now does model validation before installation. Lightly refactored django.core.management to add a get_validation_errors() function, which validate() wraps.
...
git-svn-id: http://code.djangoproject.com/svn/django/trunk@609 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2005-09-02 18:38:23 +00:00
Adrian Holovaty
24006427d9
Changed django.core.management.validate to take an optional 'outfile' argument, defaulting to sys.stdout
...
git-svn-id: http://code.djangoproject.com/svn/django/trunk@608 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2005-09-02 18:28:26 +00:00
Adrian Holovaty
59b204526e
Fixed #454 -- Clarified django-admin '--help' output to use 'modelmodule' instead of 'app'. Thanks, Maniac
...
git-svn-id: http://code.djangoproject.com/svn/django/trunk@607 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2005-09-02 18:26:16 +00:00
Adrian Holovaty
fe66d3b83b
Fixed spacing bug in '--help' output of django-admin
...
git-svn-id: http://code.djangoproject.com/svn/django/trunk@606 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2005-09-02 18:23:42 +00:00
Adrian Holovaty
5d7c8a0c4f
Fixed bug in [601]
...
git-svn-id: http://code.djangoproject.com/svn/django/trunk@604 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2005-09-02 17:59:43 +00:00
Adrian Holovaty
324f717c5e
Fixed bug in has_related_links=True, which is legacy and shouldn't be used by anybody
...
git-svn-id: http://code.djangoproject.com/svn/django/trunk@601 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2005-09-02 16:34:14 +00:00
Adrian Holovaty
582e6a1010
Fixed #392 -- Fixed bug in memcache setup if arguments are given. Thanks, adrian@exoweb.net
...
git-svn-id: http://code.djangoproject.com/svn/django/trunk@598 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2005-09-01 23:09:48 +00:00
Adrian Holovaty
af8b7ffa8e
Refactored the HttpResponse subclasses a tiny bit to use args and kwargs instead of hard-coded init() params
...
git-svn-id: http://code.djangoproject.com/svn/django/trunk@591 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2005-09-01 05:01:47 +00:00
Adrian Holovaty
e07fee6511
Fixed bug in contrib comment_form template tag when hard-coded object IDs are used
...
git-svn-id: http://code.djangoproject.com/svn/django/trunk@590 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2005-09-01 03:06:47 +00:00
Adrian Holovaty
887f6331d4
Fixed #446 -- Fixed bug in yesno template filter. Thanks, Hugo
...
git-svn-id: http://code.djangoproject.com/svn/django/trunk@589 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2005-09-01 02:22:46 +00:00
Adrian Holovaty
def5d10ffc
Fixed #365 -- Changed template.resolve_variable to resolve hard-coded strings. Thanks, davidschein
...
git-svn-id: http://code.djangoproject.com/svn/django/trunk@587 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2005-09-01 02:18:04 +00:00
Adrian Holovaty
dbc4adeeda
Fixed #385 -- Fixed bug in yesno template filter. Thanks, eugene@lazutkin.com
...
git-svn-id: http://code.djangoproject.com/svn/django/trunk@582 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2005-08-31 16:47:06 +00:00
Adrian Holovaty
9635ac07a5
Fixed #403 -- Fixed bug in floatformat template filter. Thanks, nesh
...
git-svn-id: http://code.djangoproject.com/svn/django/trunk@581 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2005-08-31 16:45:10 +00:00
Adrian Holovaty
cb6aa1035b
Fixed #407 -- Code no longer assumes request.META['REMOTE_ADDR'] exists. Thanks, sune.kirkeby@gmail.com
...
git-svn-id: http://code.djangoproject.com/svn/django/trunk@580 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2005-08-31 16:27:59 +00:00
Adrian Holovaty
abe7fb8173
Fixed #413 -- get_file_url() for FileFields now uses proper slashes on Windows. Thanks, Adam Endicott
...
git-svn-id: http://code.djangoproject.com/svn/django/trunk@579 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2005-08-31 16:22:07 +00:00
Adrian Holovaty
5569c75eb6
Refactored comment templatetags to remove redundant 'tag_name' parameter. Also added an 'extra_kwargs' hook to CommentListNode
...
git-svn-id: http://code.djangoproject.com/svn/django/trunk@578 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2005-08-30 21:33:12 +00:00
Adrian Holovaty
e1f0accaf6
Fixed display bug in admin when deleting an object that has a OneToOneField
...
git-svn-id: http://code.djangoproject.com/svn/django/trunk@577 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2005-08-30 17:03:15 +00:00
Adrian Holovaty
c6e4b232c2
Fixed #349 -- Fixed bug in development server admin media on Windows. Thanks, ibatugow@gmail.com
...
git-svn-id: http://code.djangoproject.com/svn/django/trunk@575 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2005-08-29 21:48:32 +00:00
Adrian Holovaty
d80ac5ac25
Fixed #256 and #334 -- Added {% ifequal %} template tag. Also, {% ifequal %} and {% ifnotequal %} now both accept an optional {% else %} clause. Unit tests included.
...
git-svn-id: http://code.djangoproject.com/svn/django/trunk@574 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2005-08-29 21:11:41 +00:00
Adrian Holovaty
299c3cdd8c
Fixed small bug in manipulator handling of one-to-one-related foreign keys
...
git-svn-id: http://code.djangoproject.com/svn/django/trunk@572 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2005-08-29 16:49:18 +00:00
Adrian Holovaty
2ce78063fa
Fixed bug in metasystem manipulator_validator_unique_for_date(), related to [549]
...
git-svn-id: http://code.djangoproject.com/svn/django/trunk@571 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2005-08-29 16:44:40 +00:00
Adrian Holovaty
25aef18d83
Fixed bug in metasystem method_get_next_in_order and method_get_previous_in_order, related to [549]
...
git-svn-id: http://code.djangoproject.com/svn/django/trunk@570 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2005-08-29 15:35:04 +00:00
Adrian Holovaty
b77114caaa
Fixed #423 -- Fixed bug in ForeignKey admin filters. Thanks, jkocherhans
...
git-svn-id: http://code.djangoproject.com/svn/django/trunk@569 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2005-08-26 21:12:06 +00:00
Adrian Holovaty
939e2bccd5
Changed django-admin.py inspectdb to output new-style model syntax
...
git-svn-id: http://code.djangoproject.com/svn/django/trunk@550 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2005-08-26 04:06:18 +00:00
Adrian Holovaty
25264c8604
Fixed #122 -- BIG, BACKWARDS-INCOMPATIBLE CHANGE. Changed model syntax to use fieldname=FieldClass() syntax. See ModelSyntaxChangeInstructions for important information on how to change your models
...
git-svn-id: http://code.djangoproject.com/svn/django/trunk@549 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2005-08-25 22:51:30 +00:00
Adrian Holovaty
aec0a73d73
Changed 'coding error' and 'database error' e-mails to include request.path in subject
...
git-svn-id: http://code.djangoproject.com/svn/django/trunk@548 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2005-08-25 00:50:01 +00:00
Jacob Kaplan-Moss
9fb3f7fa93
Fixed a small bug in admin changelist view -- the code that handles ordering by
...
a related field still assumed the outdated ordering syntax.
git-svn-id: http://code.djangoproject.com/svn/django/trunk@547 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2005-08-23 20:17:36 +00:00
Adrian Holovaty
928832d6e0
Changed SessionMiddleware to use process_request instead of process_view -- that way it always gets called, even for 404s
...
git-svn-id: http://code.djangoproject.com/svn/django/trunk@545 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2005-08-22 19:19:54 +00:00
Adrian Holovaty
e5e1ea602d
Fixed #350 -- 'offset' DB API parameter now works in MySQL 3. Tests from [540] pass. Thanks, ronan@cremin.com
...
git-svn-id: http://code.djangoproject.com/svn/django/trunk@541 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2005-08-19 21:51:14 +00:00
Adrian Holovaty
00c6acaaf3
Fixed #360 -- runserver now takes optional 'ip:port' in addition to 'port'. Thanks, benno@jeamland.net
...
git-svn-id: http://code.djangoproject.com/svn/django/trunk@539 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2005-08-19 21:23:56 +00:00
Adrian Holovaty
8d6c276328
Fixed #371 -- Fixed bug in 'random' template filter. Thanks, Boffbowsh
...
git-svn-id: http://code.djangoproject.com/svn/django/trunk@538 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2005-08-19 14:59:09 +00:00
Wilson Miner
a9c36d8db5
Modified admin styles to make headers and buttons readable with images off.
...
git-svn-id: http://code.djangoproject.com/svn/django/trunk@537 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2005-08-18 22:27:27 +00:00
Adrian Holovaty
2972e8b5d5
Improved session code to force creation of a new session key if the given session key doesn't exist -- for extra security
...
git-svn-id: http://code.djangoproject.com/svn/django/trunk@536 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2005-08-18 16:45:15 +00:00
Adrian Holovaty
28d41fe270
Tweaked [531] slightly, so that it checks for 'is None' instead of boolean 'not'
...
git-svn-id: http://code.djangoproject.com/svn/django/trunk@532 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2005-08-18 00:15:39 +00:00
Adrian Holovaty
8a939224fa
Added friendly error message if a view returns None instead of an HttpResponse object.
...
git-svn-id: http://code.djangoproject.com/svn/django/trunk@531 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2005-08-18 00:14:15 +00:00
Adrian Holovaty
f5ab1320ed
Fixed bug in manipulator_valid_rel_key() -- it assumed the related object's primary key was called 'id'
...
git-svn-id: http://code.djangoproject.com/svn/django/trunk@530 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2005-08-17 22:46:43 +00:00
Adrian Holovaty
b1d9682a38
Fixed #335 -- Admin login form now checks that cookies are enabled.
...
git-svn-id: http://code.djangoproject.com/svn/django/trunk@529 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2005-08-17 22:04:53 +00:00
Adrian Holovaty
5f37a627da
Fixed #340 -- Default admin settings (in django-admin startproject) now include cache middleware. Thanks, Bless
...
git-svn-id: http://code.djangoproject.com/svn/django/trunk@525 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2005-08-17 14:27:30 +00:00
Adrian Holovaty
7d022cd48f
Fixed small bug in parts.auth.formfields.AuthenticationForm
...
git-svn-id: http://code.djangoproject.com/svn/django/trunk@521 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2005-08-16 23:16:55 +00:00
Adrian Holovaty
659ab9846e
Fixed small bug in views.auth.login.login
...
git-svn-id: http://code.djangoproject.com/svn/django/trunk@520 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2005-08-16 23:15:13 +00:00
Adrian Holovaty
72109f4e35
Added SessionMiddleware to MIDDLEWARE_CLASSES in global_settings, so it's available by default.
...
git-svn-id: http://code.djangoproject.com/svn/django/trunk@519 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2005-08-16 23:02:06 +00:00
Adrian Holovaty
07889c13a6
Fixed #1 -- Added anonymous session support via middleware and request.session. Removed the former request.session, which wasn't being used anyway. Removed auth.Session model. See the BackwardsIncompatibleChanges wiki page for IMPORTANT notes on code you'll have to change and a DB table you'll have to create.
...
git-svn-id: http://code.djangoproject.com/svn/django/trunk@518 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2005-08-16 22:54:05 +00:00
Adrian Holovaty
f21ff30b10
Small formatting change to validation error in [516], to be consistent with other validation errors.
...
git-svn-id: http://code.djangoproject.com/svn/django/trunk@517 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2005-08-16 18:28:00 +00:00
Jacob Kaplan-Moss
7d374ad597
Added raw_id_admin support to ManyToManyField objects; fixes #260
...
git-svn-id: http://code.djangoproject.com/svn/django/trunk@516 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2005-08-16 18:08:37 +00:00
Adrian Holovaty
935daf0626
Fixed typo in django.views.auth.login
...
git-svn-id: http://code.djangoproject.com/svn/django/trunk@515 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2005-08-16 16:57:20 +00:00
Adrian Holovaty
00da60e932
Removed special-case test for '_files' URL in common middleware -- thanks, Jeremy Dunck
...
git-svn-id: http://code.djangoproject.com/svn/django/trunk@513 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2005-08-16 00:47:53 +00:00
Adrian Holovaty
071037ff80
Changed 'django-admin startproject' to included MIDDLEWARE_CLASSES in settings/main.py.
...
git-svn-id: http://code.djangoproject.com/svn/django/trunk@512 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2005-08-16 00:41:42 +00:00
Adrian Holovaty
d22e88898f
Changed handlers (both mod_python and WSGI) to support setting multiple cookies per request
...
git-svn-id: http://code.djangoproject.com/svn/django/trunk@511 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2005-08-15 22:47:41 +00:00
Adrian Holovaty
c727729183
Changed meta.py save() code from [507] to work under sqlite. All tests now pass in all 3 database backends.
...
git-svn-id: http://code.djangoproject.com/svn/django/trunk@510 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2005-08-15 20:03:34 +00:00
Adrian Holovaty
7cfddb3c43
Improved model validator to validate 'choices' for a field
...
git-svn-id: http://code.djangoproject.com/svn/django/trunk@509 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2005-08-15 19:00:50 +00:00
Adrian Holovaty
27986994ee
Fixed #320 -- Changed save() code so that it doesn't rely on cursor.rowcount. MySQLdb sets cursor.rowcount to 0 in an UPDATE statement even if the record already exists. Now save() does a SELECT query to find out whether a record with the primary key already exists.
...
git-svn-id: http://code.djangoproject.com/svn/django/trunk@507 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2005-08-15 16:00:28 +00:00
Adrian Holovaty
db127b7983
Fixed #322 -- Development server now calls validate() again. Thanks, rmunn
...
git-svn-id: http://code.djangoproject.com/svn/django/trunk@505 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2005-08-15 15:24:56 +00:00
Adrian Holovaty
91c71d36e6
Fixed #322 -- 'django-admin runserver' no longer validates models.
...
git-svn-id: http://code.djangoproject.com/svn/django/trunk@504 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2005-08-15 14:48:07 +00:00
Adrian Holovaty
8f9e5b6b3b
Added 'django-admin.py validate', which validates all installed models. Validation only handles common errors at this point, but we'll be improving it each time we think of a potential model syntax problem. Also changed the development Web server to validate automatically at server start.
...
git-svn-id: http://code.djangoproject.com/svn/django/trunk@503 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2005-08-15 05:05:52 +00:00
Adrian Holovaty
4a7159865e
Improved error handling for invalid model parameters that aren't custom functions.
...
git-svn-id: http://code.djangoproject.com/svn/django/trunk@502 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2005-08-15 04:44:19 +00:00
Adrian Holovaty
1e479ba90d
Fixed #93 and #279 -- 'django-admin startproject' no longer creates invalid settings/admin.py on Windows
...
git-svn-id: http://code.djangoproject.com/svn/django/trunk@498 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2005-08-15 01:24:16 +00:00
Adrian Holovaty
bc00059b2f
Fixed #316 -- Added special-case for MySQL microseconds, so that it doesn't throw a warning when microseconds are given.
...
git-svn-id: http://code.djangoproject.com/svn/django/trunk@497 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2005-08-15 01:03:39 +00:00
Adrian Holovaty
2c3067b5e5
Fixed #311 -- Small change to docstring. Thanks, rmunn
...
git-svn-id: http://code.djangoproject.com/svn/django/trunk@496 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2005-08-15 00:53:18 +00:00
Adrian Holovaty
bf108187a2
Fixed #321 -- Undid [494], which assumed the installed version of MySQLdb had a 'cursors.CursorNW'. Thanks for being consistent, MySQLdb. This opens #316 again.
...
git-svn-id: http://code.djangoproject.com/svn/django/trunk@495 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2005-08-15 00:50:31 +00:00
Adrian Holovaty
a9b43edde2
Fixed #316 -- Changed MySQL backend to disregard warnings
...
git-svn-id: http://code.djangoproject.com/svn/django/trunk@494 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2005-08-14 23:59:29 +00:00
Jacob Kaplan-Moss
b149fc3671
Fixed #310 -- thanks, mordaha
...
git-svn-id: http://code.djangoproject.com/svn/django/trunk@492 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2005-08-12 14:19:34 +00:00
Adrian Holovaty
199aa88ffb
Moved django.core.handlers.wsgi.AdminMediaHandler to django.core.servers.basehttp. Makes more sense to have it in there, because its only use is for the development server.
...
git-svn-id: http://code.djangoproject.com/svn/django/trunk@491 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2005-08-12 04:16:29 +00:00
Adrian Holovaty
43f3b984e8
Removed <meta http-equiv='content-type'...> from admin base template, because Django sends out correct content-type HTTP header as of [340]
...
git-svn-id: http://code.djangoproject.com/svn/django/trunk@490 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2005-08-12 03:59:38 +00:00
Adrian Holovaty
8d8da826db
Changed timestamp and time typecasting to preserve microseconds. Added unit tests to test this behavior, and added a db_typecast unit test module. Refs #306 .
...
git-svn-id: http://code.djangoproject.com/svn/django/trunk@487 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2005-08-11 19:34:34 +00:00
Adrian Holovaty
e67882721d
Refactored django.core.urlresolvers a tiny bit
...
git-svn-id: http://code.djangoproject.com/svn/django/trunk@479 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2005-08-10 22:20:18 +00:00
Adrian Holovaty
fcfb8edc15
Fixed #126 -- HttpRequest now has a 'raw_post_data' attribute.
...
git-svn-id: http://code.djangoproject.com/svn/django/trunk@478 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2005-08-10 22:12:05 +00:00
Adrian Holovaty
bdcea2e6ca
Fixed #118 -- Renamed 'flat files' to 'flat pages' in the admin. Didn't rename it in the Python code, because too many things would break.
...
git-svn-id: http://code.djangoproject.com/svn/django/trunk@477 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2005-08-10 21:46:40 +00:00
Adrian Holovaty
77d20bedd4
Fixed #192 -- File uploads now work with built-in Web server. Thanks, mordaha@gmail.com
...
git-svn-id: http://code.djangoproject.com/svn/django/trunk@476 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2005-08-10 21:20:45 +00:00
Adrian Holovaty
46d8bbab3d
Added help_doc to django.core.management.install
...
git-svn-id: http://code.djangoproject.com/svn/django/trunk@470 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2005-08-10 20:16:15 +00:00
Adrian Holovaty
199938649e
Fixed #81 -- Admin now supports primary_key=True for non-integer fields. Note that you'll have to make a change to your database if you're using a previous Django installation and want to use non-integer primary key fields. See the BackwardsIncompatibleChanges wiki page for info.
...
git-svn-id: http://code.djangoproject.com/svn/django/trunk@469 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2005-08-10 19:32:38 +00:00
Adrian Holovaty
b3ae12fa4a
Cleaned up admin view code to use new 'pk' lookup syntax
...
git-svn-id: http://code.djangoproject.com/svn/django/trunk@468 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2005-08-10 18:46:11 +00:00
Jacob Kaplan-Moss
8e2d275390
Fixed #241 -- added django.contrib.markup app with markup templatetags for Textile, ReST and Markdown
...
git-svn-id: http://code.djangoproject.com/svn/django/trunk@467 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2005-08-10 18:31:33 +00:00
Adrian Holovaty
254f31819b
Fixed #299 -- Slugify no longer removes hyphens. Thanks, gch@cs.cmu.edu
...
git-svn-id: http://code.djangoproject.com/svn/django/trunk@464 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2005-08-10 15:40:14 +00:00
Adrian Holovaty
4622e0ff82
Refactored the way save() works so that non-integer primary keys are now possible. custom_pk unit tests (from [458]) now pass. Refs #81 .
...
git-svn-id: http://code.djangoproject.com/svn/django/trunk@462 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2005-08-10 05:08:27 +00:00
Adrian Holovaty
7bac552069
Changed [459] to use a better interface for the exception
...
git-svn-id: http://code.djangoproject.com/svn/django/trunk@460 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2005-08-10 04:48:47 +00:00
Adrian Holovaty
024e68e260
Changed MySQL backend so that it fails silently if rollback() isn't supported (the code catches NotSupportedError exception)
...
git-svn-id: http://code.djangoproject.com/svn/django/trunk@459 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2005-08-10 04:45:10 +00:00
Adrian Holovaty
5b812ae02c
Undid [455] -- it's not a good enough solution for what I'm trying to do
...
git-svn-id: http://code.djangoproject.com/svn/django/trunk@457 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2005-08-10 03:50:46 +00:00
Adrian Holovaty
6d234fae8c
Slightly refactored metasystem -- changed Field pre_save() hooks to pre_save_add(), in preparation for some bigger changes. Refs #81 .
...
git-svn-id: http://code.djangoproject.com/svn/django/trunk@455 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2005-08-10 03:44:51 +00:00
Adrian Holovaty
258e6bc330
Simplified metasystem get_db_prep_save() hook so that it doesn't take an 'add' parameter -- it wasn't being used, anyway.
...
git-svn-id: http://code.djangoproject.com/svn/django/trunk@454 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2005-08-10 03:12:37 +00:00
Adrian Holovaty
0d060ba547
Updated PPK's URL in comments of admin_media/js/core.js
...
git-svn-id: http://code.djangoproject.com/svn/django/trunk@453 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2005-08-10 01:27:13 +00:00
Adrian Holovaty
9a6e8142b8
Removed media.ljworld.com reference from admin_media/js/admin/DateTimeShortcuts.js
...
git-svn-id: http://code.djangoproject.com/svn/django/trunk@452 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2005-08-10 01:14:50 +00:00
Adrian Holovaty
d8f5cad47e
Removed media.ljworld.com reference from admin_media/js/SelectFilter2.js. Refs #49
...
git-svn-id: http://code.djangoproject.com/svn/django/trunk@451 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2005-08-10 01:01:54 +00:00
Adrian Holovaty
5144a60efc
Removed unnecessary code from admin_media/js
...
git-svn-id: http://code.djangoproject.com/svn/django/trunk@450 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2005-08-10 00:44:48 +00:00
Adrian Holovaty
65f7e142e4
Removed admin_media/js/admin/add_calendars.js -- it wasn't being used
...
git-svn-id: http://code.djangoproject.com/svn/django/trunk@449 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2005-08-10 00:40:08 +00:00
Adrian Holovaty
e2426e68e6
Removed unnecessary code from admin_media/js/admin/add_calendars.js
...
git-svn-id: http://code.djangoproject.com/svn/django/trunk@448 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2005-08-10 00:37:56 +00:00
Adrian Holovaty
991832d0c4
Fixed #154 -- Fixed constraint error when deleting an object with a many-to-many field
...
git-svn-id: http://code.djangoproject.com/svn/django/trunk@447 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2005-08-10 00:21:41 +00:00
Adrian Holovaty
b888113f49
Small change to docstring in django.core.template
...
git-svn-id: http://code.djangoproject.com/svn/django/trunk@443 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2005-08-09 22:43:34 +00:00
Adrian Holovaty
4f00611f74
Fixed #211 -- edit_inline_type is deprecated, in favor of edit_inline itself. For example, instead of 'edit_inline=True, edit_inline_type=meta.TABULAR', use 'edit_inline=meta.TABULAR'.
...
git-svn-id: http://code.djangoproject.com/svn/django/trunk@440 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2005-08-09 21:08:00 +00:00
Adrian Holovaty
b7e226d8b8
Fixed typos in generic-views documentation
...
git-svn-id: http://code.djangoproject.com/svn/django/trunk@434 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2005-08-08 19:45:57 +00:00
Adrian Holovaty
a90e9f43db
Companion checkin to [432]
...
git-svn-id: http://code.djangoproject.com/svn/django/trunk@433 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2005-08-08 18:30:07 +00:00
Adrian Holovaty
4003f9f482
Changed 'django-admin adminindex' to output relative links, not absolute links. Thanks, Joe Grace
...
git-svn-id: http://code.djangoproject.com/svn/django/trunk@426 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2005-08-07 01:02:48 +00:00
Adrian Holovaty
5bb56520a5
Fixed #270 -- Admin change forms now display default values in num_extra_on_change fields with default set. Thanks for the patch, Hugo
...
git-svn-id: http://code.djangoproject.com/svn/django/trunk@418 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2005-08-06 20:51:06 +00:00
Adrian Holovaty
8a9806096f
Fixed #7 -- Fixed subtle admin changelist filter bug in maintaining state. Thanks for the patch, Manuzhai!
...
git-svn-id: http://code.djangoproject.com/svn/django/trunk@417 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2005-08-06 20:39:43 +00:00
Adrian Holovaty
a537a4efa1
Changed 'django-admin startapp' so that it doesn't create the 'urls' directory. People have said they're a bit overwhelmed by the multiple url directories, and this one isn't necessary for basic Django usage. You can always make it yourself if you know what you're doing and want to decouple/distribute your apps.
...
git-svn-id: http://code.djangoproject.com/svn/django/trunk@415 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2005-08-05 22:43:35 +00:00
Adrian Holovaty
59c3ebc6dd
Greatly improved the 404 error message when DEBUG=True. If none of the urlpatterns matches, Django now displays a list of all the urlpatterns it tried. This should catch a lot of newbie errors, and it's helpful even for power users.
...
git-svn-id: http://code.djangoproject.com/svn/django/trunk@414 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2005-08-05 22:22:41 +00:00
Adrian Holovaty
c517960984
Made small cleanups to two default urlconfs, to be clearer.
...
git-svn-id: http://code.djangoproject.com/svn/django/trunk@413 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2005-08-05 22:15:14 +00:00
Adrian Holovaty
b6a1105768
Updated admin doc view to reflect changes from [411]
...
git-svn-id: http://code.djangoproject.com/svn/django/trunk@412 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2005-08-05 21:24:24 +00:00
Adrian Holovaty
a55598cbdd
Refactored the internals of URL parsing to use less code
...
git-svn-id: http://code.djangoproject.com/svn/django/trunk@411 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2005-08-05 20:50:19 +00:00
Adrian Holovaty
888cf1f889
Fixed #275 -- Bug in validators.RequiredIfOtherFieldsGiven. Thanks, jhernandez
...
git-svn-id: http://code.djangoproject.com/svn/django/trunk@410 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2005-08-05 15:41:58 +00:00
Adrian Holovaty
0b9330b085
Changed default ManyToOne num_in_admin from 0 to 3, to help avoid confusion when people forget to set num_in_admin
...
git-svn-id: http://code.djangoproject.com/svn/django/trunk@409 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2005-08-05 15:05:16 +00:00
Adrian Holovaty
502755878d
Fixed #266 -- Added ValidateIfOtherFieldEquals validator. Thanks again, Hugo
...
git-svn-id: http://code.djangoproject.com/svn/django/trunk@405 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2005-08-04 15:12:11 +00:00
Adrian Holovaty
63eecadfc6
Tightened up some code in django.core.validators
...
git-svn-id: http://code.djangoproject.com/svn/django/trunk@404 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2005-08-04 15:05:55 +00:00
Adrian Holovaty
0c6019295a
Refactored django.core.validators.RequiredIfOtherFieldGiven to remove duplicate code
...
git-svn-id: http://code.djangoproject.com/svn/django/trunk@403 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2005-08-04 15:05:15 +00:00
Adrian Holovaty
2315ccc499
Fixed #268 -- Added AnyValidator and fixed small bug in [399]. Thanks, Hugo
...
git-svn-id: http://code.djangoproject.com/svn/django/trunk@402 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2005-08-04 14:57:20 +00:00
Adrian Holovaty
dae5863058
Fixed #263 -- inspectdb output now includes a comment reminding people to run sqlinitialdata. Thanks, Hugo
...
git-svn-id: http://code.djangoproject.com/svn/django/trunk@401 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2005-08-04 14:51:46 +00:00
Adrian Holovaty
a8ecb56106
Fixed #267 -- "Save and continue editing" no longer assumes object has an ID field. Thanks, Hugo
...
git-svn-id: http://code.djangoproject.com/svn/django/trunk@400 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2005-08-04 14:48:48 +00:00
Adrian Holovaty
3f2df5e7aa
Fixed #269 -- Added MatchesRegularExpression validator. Thanks, Hugo!
...
git-svn-id: http://code.djangoproject.com/svn/django/trunk@399 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2005-08-04 14:42:01 +00:00
Adrian Holovaty
cfbf261709
Improved 'django-admin inspectdb' so that it doesn't raise an exception for unknown field types. Now it uses TextField by default and outputs a Python comment.
...
git-svn-id: http://code.djangoproject.com/svn/django/trunk@398 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2005-08-04 03:49:24 +00:00
Adrian Holovaty
808e50986b
Fixed #257 -- Empty model modules no longer cause an error. Thanks, Bill de hÓra
...
git-svn-id: http://code.djangoproject.com/svn/django/trunk@397 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2005-08-04 03:32:56 +00:00
Adrian Holovaty
f4e4ae96cb
Improved 'django-admin inspectdb' so that it detects ForeignKey relationships -- PostgreSQL only
...
git-svn-id: http://code.djangoproject.com/svn/django/trunk@395 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2005-08-02 22:33:39 +00:00
Jacob Kaplan-Moss
49c6708716
Added doc view for templates that will show the search path for a given template on each site
...
git-svn-id: http://code.djangoproject.com/svn/django/trunk@392 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2005-08-02 20:29:27 +00:00
Jacob Kaplan-Moss
ce0d0cd9e2
Made a bunch of fixes to auto-generated admin documentation:
...
* Views are no longer "doubled"
* Links work better (view -> model links and friends were broken)
* Performance has been improved so now the pages no longer need to be cached.
git-svn-id: http://code.djangoproject.com/svn/django/trunk@391 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2005-08-02 19:59:51 +00:00
Jacob Kaplan-Moss
ffc3edd79e
Fixed a subtle bug with the {% load %} tag: if a tag/filter was removed from template.registered_tags/filters, {% load %} would fail (since module-level code is only run on an initial import). {% load %} now reloads the module, which makes sure that the tag always works even when someone's been doing something screwy. This fixes #242 (and wouldn't had been found without it, so much thanks).
...
git-svn-id: http://code.djangoproject.com/svn/django/trunk@390 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2005-08-02 18:47:46 +00:00
Adrian Holovaty
51aba5deaf
Removed redundant verbose names from auth and core models, because they're no longer required
...
git-svn-id: http://code.djangoproject.com/svn/django/trunk@388 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2005-08-02 17:56:22 +00:00
Jacob Kaplan-Moss
623863d0a4
Fixed #105 -- collapsable fieldsets now work in both ways (thanks, Simon)
...
git-svn-id: http://code.djangoproject.com/svn/django/trunk@387 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2005-08-02 17:49:49 +00:00
Adrian Holovaty
b3b27d2593
Removed id field from auth.Message model -- it's implied
...
git-svn-id: http://code.djangoproject.com/svn/django/trunk@386 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2005-08-02 17:48:33 +00:00
Jacob Kaplan-Moss
2e83364965
Calendar next/prev popups now work in Safari ( fixed #2 )
...
git-svn-id: http://code.djangoproject.com/svn/django/trunk@385 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2005-08-02 17:45:53 +00:00
Adrian Holovaty
d9401b78f1
Added first stab at 'django-admin.py inspectdb', which takes a database name and introspects the tables, outputting a Django model. Works in PostgreSQL and MySQL. It's missing some niceties at the moment, such as detection of primary-keys and relationships, but it works. Refs #90 .
...
git-svn-id: http://code.djangoproject.com/svn/django/trunk@384 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2005-08-02 17:08:24 +00:00
Jacob Kaplan-Moss
1510ca1a80
Fixed #227 -- the sqlite backend now correctly typecasts unicode objects to bytestrings (thanks hugo)
...
git-svn-id: http://code.djangoproject.com/svn/django/trunk@383 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2005-08-01 21:49:57 +00:00
Adrian Holovaty
e0c3dd3318
Refactored meta.py -- created a django.core.meta package, with init.py and fields.py
...
git-svn-id: http://code.djangoproject.com/svn/django/trunk@378 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2005-08-01 21:29:52 +00:00
Adrian Holovaty
006e9e789b
Fixed #180 -- Removed 'enctype' from FREE_COMMENT_FORM template in contrib.comments.templatetags
...
git-svn-id: http://code.djangoproject.com/svn/django/trunk@377 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2005-08-01 20:07:31 +00:00
Adrian Holovaty
77faac0cb7
Changed SEND_BROKEN_LINK_EMAILS from True to False in global_settings -- it was causing too much confusion with improperly configured/missing mail servers
...
git-svn-id: http://code.djangoproject.com/svn/django/trunk@376 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2005-08-01 20:01:18 +00:00
Jacob Kaplan-Moss
440a2a97e9
Added framework for writing non-model-based tests, and added tests for cache and templates
...
from the old django/tests location (which has been removed).
git-svn-id: http://code.djangoproject.com/svn/django/trunk@367 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2005-08-01 19:09:07 +00:00
Adrian Holovaty
b307fb09bb
Fixed #239 and #107 -- Changed model init() to use Field.get_default() if the value wasn't explicitly passed as a keyword argument. That means setting 'id=None' is no longer necessary, and you can leave off fields if you want them to have default values set.
...
git-svn-id: http://code.djangoproject.com/svn/django/trunk@360 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2005-08-01 16:26:39 +00:00
Adrian Holovaty
1a8fc57bf6
Fixed #214 -- Added get_values() and get_values_iterator() module-level functions to DB API. Thanks, rmunn
...
git-svn-id: http://code.djangoproject.com/svn/django/trunk@359 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2005-08-01 15:32:42 +00:00
Jacob Kaplan-Moss
af95567c14
Improved error message in urlresolvers ( fixes #240 )
...
git-svn-id: http://code.djangoproject.com/svn/django/trunk@357 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2005-08-01 14:41:01 +00:00
Adrian Holovaty
8b36eb11d3
Gave comments.FreeComment a get_absolute_url() method
...
git-svn-id: http://code.djangoproject.com/svn/django/trunk@354 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2005-07-30 18:56:36 +00:00
Adrian Holovaty
47ce61533a
Fixed #228 -- Better handling of timezones. Thanks, rmunn
...
git-svn-id: http://code.djangoproject.com/svn/django/trunk@347 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2005-07-29 21:40:09 +00:00
Adrian Holovaty
017b8753a6
Fixed #219 and #188 -- Database timestamp typecast no longer assumes '-' delineates the time zone
...
git-svn-id: http://code.djangoproject.com/svn/django/trunk@346 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2005-07-29 21:10:09 +00:00
Adrian Holovaty
9e64035796
Changed admin views to output utf-8 charset explicitly
...
git-svn-id: http://code.djangoproject.com/svn/django/trunk@340 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2005-07-29 16:32:47 +00:00
Adrian Holovaty
d4a9a4f83a
Fixed #223 -- Changed breadcrumbs in admin doc templates to use relative, not absolute, URLs. Thanks, Drew Amato
...
git-svn-id: http://code.djangoproject.com/svn/django/trunk@337 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2005-07-29 15:25:31 +00:00
Adrian Holovaty
cf9efea240
Whoop, left in an 'assert False' in [333]
...
git-svn-id: http://code.djangoproject.com/svn/django/trunk@334 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2005-07-28 15:01:10 +00:00
Adrian Holovaty
f5b605ab1b
Fixed #218 -- Fixed admin change-list column sorting
...
git-svn-id: http://code.djangoproject.com/svn/django/trunk@333 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2005-07-28 14:59:50 +00:00
Adrian Holovaty
1d2ab36068
Fixed bug for models with a ForeignKey('self') and order_with_respect_to
...
git-svn-id: http://code.djangoproject.com/svn/django/trunk@332 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2005-07-27 19:20:29 +00:00
Adrian Holovaty
9b98383175
Fixed #187 -- Made admin view handle one-to-one relationships in which the parent relationship doesn't have the 'admin' parameter set. Thanks, Moof
...
git-svn-id: http://code.djangoproject.com/svn/django/trunk@331 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2005-07-26 23:24:55 +00:00
Adrian Holovaty
d52db2d879
Changed django.core.management.get_sql_delete to be more robust when many-to-many tables don't exist
...
git-svn-id: http://code.djangoproject.com/svn/django/trunk@330 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2005-07-26 23:18:08 +00:00
Adrian Holovaty
d8ef66b17d
Fixed #186 -- Refactored meta.py to remove duplicate code between function_get_list and function_get_iterator. Thanks, rmunn@pobox.com
...
git-svn-id: http://code.djangoproject.com/svn/django/trunk@329 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2005-07-26 23:04:50 +00:00
Adrian Holovaty
18e420da02
Added breadcrumbs to password-reset and password-change admin templates
...
git-svn-id: http://code.djangoproject.com/svn/django/trunk@327 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2005-07-26 22:54:59 +00:00
Adrian Holovaty
6a12d65b97
Changed admin logged_out template NOT to hard-code /admin/ as the 'Home'. Refs #158
...
git-svn-id: http://code.djangoproject.com/svn/django/trunk@326 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2005-07-26 22:52:18 +00:00
Adrian Holovaty
fe91881e35
Fixed #159 -- Admin users no longer have to log in to go to the 'log out' page. Thanks, Manuzhai
...
git-svn-id: http://code.djangoproject.com/svn/django/trunk@325 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2005-07-26 22:48:04 +00:00
Adrian Holovaty
3c0c0e7317
Fixed #162 -- Admin log now records repr() before calling delete(), instead of after calling it() -- thanks, mfenniak@pobox.com!
...
git-svn-id: http://code.djangoproject.com/svn/django/trunk@324 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2005-07-26 22:43:27 +00:00
Adrian Holovaty
b23c63bcfe
Fixed #206 -- 'django-admin sqlclear' now deletes from admin log to prevent referential integrity violations
...
git-svn-id: http://code.djangoproject.com/svn/django/trunk@323 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2005-07-26 22:38:54 +00:00
Adrian Holovaty
aeff2cb530
Fixed #93 -- Fixed 'django-admin startproject' to use os.path.join instead of string concatenation
...
git-svn-id: http://code.djangoproject.com/svn/django/trunk@322 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2005-07-26 22:15:51 +00:00
Adrian Holovaty
5a3da949fa
Fixed #198 -- istartswith and iendswith weren't working properly. Thanks, brantley
...
git-svn-id: http://code.djangoproject.com/svn/django/trunk@321 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2005-07-26 18:38:44 +00:00
Adrian Holovaty
8a86e7713f
Fixed #161 -- Log output for 'django-admin runserver' no longer includes admin media
...
git-svn-id: http://code.djangoproject.com/svn/django/trunk@320 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2005-07-26 17:49:49 +00:00
Adrian Holovaty
ba3db4ca38
Removed Adrian's note in the docstring of django.utils.feedgenerator -- it's part of Django now
...
git-svn-id: http://code.djangoproject.com/svn/django/trunk@319 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2005-07-26 17:42:37 +00:00
Adrian Holovaty
284948b9cf
Fixed #166 -- Added an 'in' lookup type to the database API
...
git-svn-id: http://code.djangoproject.com/svn/django/trunk@318 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2005-07-26 16:53:58 +00:00
Adrian Holovaty
786c750c40
Fixed #163 -- Added 'pk' database API option, which is a shorthand for (primary_key)__exact
...
git-svn-id: http://code.djangoproject.com/svn/django/trunk@316 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2005-07-26 16:11:43 +00:00
Adrian Holovaty
e207378ad3
Fixed #204 -- Changed 'django-admin createsuperuser' to disallow blank passwords
...
git-svn-id: http://code.djangoproject.com/svn/django/trunk@314 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2005-07-26 14:37:00 +00:00
Jacob Kaplan-Moss
1484f2e225
Fixed #207 -- thanks, Mathieu.
...
git-svn-id: http://code.djangoproject.com/svn/django/trunk@313 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2005-07-26 14:26:15 +00:00
Adrian Holovaty
7d574e8f76
Removed 'use_numeric_months' parameter in generic date views (from [308]) in favor of something more powerful -- you can now provide month_format and day_format, which are format strings that specify how you expect the month and day to be formatted in the URL.
...
git-svn-id: http://code.djangoproject.com/svn/django/trunk@312 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2005-07-26 03:48:41 +00:00
Jacob Kaplan-Moss
48441f467f
Fixed #193 -- thanks (again), steadicat
...
git-svn-id: http://code.djangoproject.com/svn/django/trunk@311 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2005-07-25 22:17:47 +00:00
Jacob Kaplan-Moss
a6ed088c62
Fixed #194 -- thanks, steadicat!
...
git-svn-id: http://code.djangoproject.com/svn/django/trunk@310 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2005-07-25 22:16:30 +00:00
Jacob Kaplan-Moss
12ffae6df4
Fixed #197 -- thanks for finding that, mmarshall
...
git-svn-id: http://code.djangoproject.com/svn/django/trunk@309 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2005-07-25 22:15:07 +00:00
Jacob Kaplan-Moss
5498dbe519
Fixed #196 : date-based generic views now have a "use_numeric_months" option if you'd like to use numeric months in the urls. Also fixed #183 while I was at it.
...
git-svn-id: http://code.djangoproject.com/svn/django/trunk@308 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2005-07-25 22:07:04 +00:00
Jacob Kaplan-Moss
6c43b0e06c
Fixed #195 : generic views now allow callables in extra_context dicts -- thanks, Moof!
...
git-svn-id: http://code.djangoproject.com/svn/django/trunk@307 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2005-07-25 21:53:00 +00:00
Jacob Kaplan-Moss
371144f134
A bunch of generics: documentation of generic views; cleaned up existing generic views, and added create/update generic views.
...
git-svn-id: http://code.djangoproject.com/svn/django/trunk@304 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2005-07-24 22:21:09 +00:00
Adrian Holovaty
768c17eda0
Fixed #168 -- admin object history was assuming primary key was named 'id'. Thanks, clintecker@gmail.com
...
git-svn-id: http://code.djangoproject.com/svn/django/trunk@302 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2005-07-23 15:49:26 +00:00
Jacob Kaplan-Moss
0bbe1f4425
DateTimeShortcuts.js now calls the right dismiss function; thanks jhernandez
...
git-svn-id: http://code.djangoproject.com/svn/django/trunk@300 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2005-07-22 21:56:50 +00:00
Adrian Holovaty
c97efb6799
Fixed #63 -- Refactored django.core.handlers into subclasses to remove duplicate code
...
git-svn-id: http://code.djangoproject.com/svn/django/trunk@298 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2005-07-22 18:34:38 +00:00
Adrian Holovaty
d573cb021e
Fixed #112 -- WSGI handler now displays proper text status. Thanks, sune.kirkeby@gmail.com!
...
git-svn-id: http://code.djangoproject.com/svn/django/trunk@297 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2005-07-22 18:12:05 +00:00
Adrian Holovaty
79026a6e22
Fixed #156 -- Fixed admin changelist bug as a result of ordering syntax change
...
git-svn-id: http://code.djangoproject.com/svn/django/trunk@296 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2005-07-22 17:58:56 +00:00
Wilson Miner
f1f952761e
Uncommented link to Change password now that it works
...
git-svn-id: http://code.djangoproject.com/svn/django/trunk@295 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2005-07-22 16:40:36 +00:00
Wilson Miner
8ef422d070
Added password reset templates to admin_templates
...
git-svn-id: http://code.djangoproject.com/svn/django/trunk@294 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2005-07-22 15:02:40 +00:00
Adrian Holovaty
837a64565b
Django now outputs a warning if you use old ordering syntax
...
git-svn-id: http://code.djangoproject.com/svn/django/trunk@293 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2005-07-22 13:03:50 +00:00
Adrian Holovaty
8b3c05afa5
Fixed #146 -- Changed order_by and ordering parameters to be less verbose. The old syntax is still supported but will not be supported by first release.
...
git-svn-id: http://code.djangoproject.com/svn/django/trunk@292 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2005-07-22 13:02:27 +00:00
Adrian Holovaty
05bdb8d64b
Fixed a legacy ordering_tuple --> order_by renaming in core.paginator
...
git-svn-id: http://code.djangoproject.com/svn/django/trunk@291 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2005-07-22 05:11:37 +00:00
Adrian Holovaty
2d3def9fa2
Tiny code compression in django.views.admin.main
...
git-svn-id: http://code.djangoproject.com/svn/django/trunk@290 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2005-07-22 04:40:37 +00:00
Adrian Holovaty
a1f479e080
Fixed #147 -- Thanks, Robin Munn!
...
git-svn-id: http://code.djangoproject.com/svn/django/trunk@289 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2005-07-22 04:18:03 +00:00
Jacob Kaplan-Moss
e320a0936e
Added sqlite3 database backend -- somewhat tested, but probably not 100% perfect.
...
git-svn-id: http://code.djangoproject.com/svn/django/trunk@288 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2005-07-22 03:15:43 +00:00
Adrian Holovaty
dbfb35b542
Fixed #145 -- Changed admin logout to use views.auth.login.logout, which uses redirects to ensure cookies aren't stale. Thanks, sdelatorre@gmail.com
...
git-svn-id: http://code.djangoproject.com/svn/django/trunk@287 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2005-07-22 00:49:53 +00:00
Jacob Kaplan-Moss
78cff1837a
Refactor dictfetch* methods from mysql backend out into a seperate module; this is so that future db backends that need these functions can share them.
...
git-svn-id: http://code.djangoproject.com/svn/django/trunk@276 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2005-07-21 15:48:20 +00:00
Adrian Holovaty
841b426243
Cleaned up [269] a tiny bit
...
git-svn-id: http://code.djangoproject.com/svn/django/trunk@272 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2005-07-21 15:01:31 +00:00
Jacob Kaplan-Moss
ccffb19946
Fixed #132 -- thanks anonymous user
...
git-svn-id: http://code.djangoproject.com/svn/django/trunk@270 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2005-07-21 14:01:17 +00:00
Jacob Kaplan-Moss
907ae72e81
fixes #133 -- thanks Joeri
...
git-svn-id: http://code.djangoproject.com/svn/django/trunk@269 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2005-07-21 13:57:42 +00:00
Jacob Kaplan-Moss
6b514f1aab
Fixed #137 -- thanks nesh@studioquattro.co.yu
...
git-svn-id: http://code.djangoproject.com/svn/django/trunk@268 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2005-07-21 13:53:33 +00:00
Adrian Holovaty
e1d21e5bcf
Added copyright notice to utils/autoreload for CherryPy folks
...
git-svn-id: http://code.djangoproject.com/svn/django/trunk@267 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2005-07-21 04:10:47 +00:00
Adrian Holovaty
9566a61a22
Added auto-reload to standalone server! Fixes #113 . Thanks very much to Jason Huggins for the patch.
...
git-svn-id: http://code.djangoproject.com/svn/django/trunk@266 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2005-07-21 04:08:54 +00:00
Adrian Holovaty
c21f6ecee2
Fixed #92 -- meta.Admin 'fields' parameter is now optional. If it's not given, Django will use all editable fields by default. This cuts down on redundancy. Also updated relevant docs to reflect the change.
...
git-svn-id: http://code.djangoproject.com/svn/django/trunk@265 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2005-07-21 03:46:16 +00:00
Adrian Holovaty
304b08e325
Improved 'django-admin runserver' so that it explicitly tells you how to stop it. Also trapped KeyboardInterrupt so stopping it doesn't give an ugly traceback.
...
git-svn-id: http://code.djangoproject.com/svn/django/trunk@264 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2005-07-21 03:24:28 +00:00
Adrian Holovaty
03c436bf61
Refactored django.views.admin.main to call opts.admin.get_field_objs() only once, and made sure no code accessed admin.fields directly, in preparation for an upcoming change
...
git-svn-id: http://code.djangoproject.com/svn/django/trunk@263 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2005-07-21 03:19:30 +00:00
Adrian Holovaty
8d144dadd8
Fixed #114 -- Changed uses of deprecated 'whrandom' module to 'random'
...
git-svn-id: http://code.djangoproject.com/svn/django/trunk@262 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2005-07-21 02:20:40 +00:00
Adrian Holovaty
d330be0169
Added 'django-admin createsuperuser' and updated tutorial to use it instead of manually creating the user in the Python interactive prompt
...
git-svn-id: http://code.djangoproject.com/svn/django/trunk@261 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2005-07-21 02:17:45 +00:00
Adrian Holovaty
bc5359f754
Added optional rel_name parameter to ManyToManyField, which makes it possible to many-to-many-relate a single model to another model more than once. Also updated the model docs to reflect this
...
git-svn-id: http://code.djangoproject.com/svn/django/trunk@257 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2005-07-20 22:55:01 +00:00
Adrian Holovaty
895d232671
Small code cleanup -- changed django.core.management.get_sql_delete to use get_m2m_db_table(), and moved get_m2m_db_table() from Field to ManyToManyField, because it's only used by the latter
...
git-svn-id: http://code.djangoproject.com/svn/django/trunk@256 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2005-07-20 21:56:12 +00:00
Adrian Holovaty
47cc60d94b
Fixed small bug in print_error() calls in django-admin
...
git-svn-id: http://code.djangoproject.com/svn/django/trunk@252 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2005-07-20 20:35:53 +00:00
Adrian Holovaty
ec31445c52
Added '--settings' option to django-admin. This specifies which settings module to use, if you don't want to deal with setting the DJANGO_SETTINGS_MODULE environment variable. Refactored django-admin to use optparse. Updated the tutorials to use '--settings' instead of environment variables, which can be confusing.
...
git-svn-id: http://code.djangoproject.com/svn/django/trunk@247 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2005-07-20 17:42:36 +00:00
Jacob Kaplan-Moss
1b8c4c4556
Argh: fixed another bug in [244]
...
git-svn-id: http://code.djangoproject.com/svn/django/trunk@246 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2005-07-20 17:12:12 +00:00
Jacob Kaplan-Moss
067f56d93d
Fixed really dumb bug in [244]
...
git-svn-id: http://code.djangoproject.com/svn/django/trunk@245 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2005-07-20 17:09:39 +00:00
Jacob Kaplan-Moss
890bd5b0d2
Added "reversed" option to get_comment_list templatetag to return comments in most-recent-first order.
...
git-svn-id: http://code.djangoproject.com/svn/django/trunk@244 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2005-07-20 17:07:30 +00:00
Adrian Holovaty
1fc28dea11
Fixed #97 -- Refactored django-admin.py so that it only contains command-line-interface code. Moved the actual meat into django/core/management.py
...
git-svn-id: http://code.djangoproject.com/svn/django/trunk@242 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2005-07-20 15:00:34 +00:00
Adrian Holovaty
e215ed3609
Fixed #102 -- Now using text/plain mimetype for exceptions displayed in the browser, so angle brackets are no longer an issue
...
git-svn-id: http://code.djangoproject.com/svn/django/trunk@241 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2005-07-20 06:13:06 +00:00
Adrian Holovaty
2012f7df63
'django-admin runserver' now displays the settings module you're using when it starts up
...
git-svn-id: http://code.djangoproject.com/svn/django/trunk@240 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2005-07-20 06:08:39 +00:00
Adrian Holovaty
45c334dd8b
Cleaned up code in django.conf.settings to move DJANGO_SETTINGS_MODULE into a variable, so other scripts can introspect it. Also made it display a better error message if DJANGO_SETTINGS_MODULE is set to the empty string
...
git-svn-id: http://code.djangoproject.com/svn/django/trunk@239 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2005-07-20 06:05:32 +00:00
Adrian Holovaty
584cab7bc5
Fixed ForeignKey('self') so that extra cruft parameters aren't necessary. Also refactored the way meta.Admin is handled, so that fields aren't initialized until you manually call meta.Admin.get_field_objs()
...
git-svn-id: http://code.djangoproject.com/svn/django/trunk@238 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2005-07-20 05:46:00 +00:00
Adrian Holovaty
526f6af782
Changed models.auth.Session.get_session_from_cookie to raise SessionDoesNotExist instead of SuspiciousOperation if tamper check fails
...
git-svn-id: http://code.djangoproject.com/svn/django/trunk@234 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2005-07-20 00:57:38 +00:00
Adrian Holovaty
d384870307
Changed django.views.defaults to use template.Context instead of core.extensions.DjangoContext
...
git-svn-id: http://code.djangoproject.com/svn/django/trunk@233 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2005-07-20 00:50:37 +00:00
Adrian Holovaty
20820f2e85
Made ModPythonHandler.get_response() tolerant of repr(request) that has an exception
...
git-svn-id: http://code.djangoproject.com/svn/django/trunk@232 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2005-07-20 00:47:10 +00:00
Adrian Holovaty
49fbe711cc
Added missing import to [230]
...
git-svn-id: http://code.djangoproject.com/svn/django/trunk@231 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2005-07-20 00:43:39 +00:00
Adrian Holovaty
897d24b220
Fixed #95 -- Added SECRET_KEY setting instead of hard-coding keys that are shared for every Django installation. 'django-admin.py startproject' now creates a random SECRET_KEY. The auth and comments modules, and the admin middleware, all use SECRET_KEY now, instead of hard-coded values.
...
git-svn-id: http://code.djangoproject.com/svn/django/trunk@230 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2005-07-20 00:37:45 +00:00
Adrian Holovaty
43538e78eb
Fixed #59 -- Changed hard-coded references to password_change and logout in admin templates to add /admin/ prefix. Still hard-coded, but you can override it in custom templates if your URL structure is different
...
git-svn-id: http://code.djangoproject.com/svn/django/trunk@228 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2005-07-19 21:39:52 +00:00
Adrian Holovaty
3fc5294d2e
Fixed #84 -- CREATE TABLE foreign keys now work in MySQL
...
git-svn-id: http://code.djangoproject.com/svn/django/trunk@227 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2005-07-19 21:32:58 +00:00
Adrian Holovaty
307f3a95c7
Fixed the annoying login error that happens in some cases when REGISTRATION_COOKIE_DOMAIN isn't set. Now, generally you don't have to sete REGISTRATION_COOKIE_DOMAIN unless you want to use multi-domain cookies (such as '.foo.com')
...
git-svn-id: http://code.djangoproject.com/svn/django/trunk@216 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2005-07-19 19:13:33 +00:00
Adrian Holovaty
5874952a8e
Improved error message when DATABASE_ENGINE is invalid. It now displays a list of all available database backends
...
git-svn-id: http://code.djangoproject.com/svn/django/trunk@215 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2005-07-19 19:04:12 +00:00
Adrian Holovaty
e29afe7974
Fixed #88 -- settings are now forgiving of single-element INSTALLED_APPS and TEMPLATE_DIRS without trailing commas.
...
git-svn-id: http://code.djangoproject.com/svn/django/trunk@213 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2005-07-19 17:58:01 +00:00
Adrian Holovaty
df66763406
Fixed #67 -- Human-readable name is now optional in model fields. If a second positional argument isn't given, Django will use the first argument, converting underscores to spaces. This change is fully backwards-compatible.
...
git-svn-id: http://code.djangoproject.com/svn/django/trunk@212 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2005-07-19 17:20:37 +00:00
Adrian Holovaty
3e09a1fc1c
Quick bugfix to [207] -- MySQL doesn't have ILIKE
...
git-svn-id: http://code.djangoproject.com/svn/django/trunk@208 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2005-07-19 15:24:27 +00:00
Adrian Holovaty
5797066383
Added support for istartswith and iendswith in database API
...
git-svn-id: http://code.djangoproject.com/svn/django/trunk@207 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2005-07-19 15:24:03 +00:00
Adrian Holovaty
b430d4c54f
Improved error message in urlresolvers.RegexURLResolver.resolve to use repr instead of str on app_path
...
git-svn-id: http://code.djangoproject.com/svn/django/trunk@204 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2005-07-19 14:47:41 +00:00
Adrian Holovaty
7fa76265ad
Fixed #83 -- Fixed spelling error in django.conf.settings. Nice catch, Manuzhai!
...
git-svn-id: http://code.djangoproject.com/svn/django/trunk@203 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2005-07-19 14:44:27 +00:00
Adrian Holovaty
fc85642ed5
Added a more helpful error message to django.core.urlresolvers.RegexURLResolver.resolve
...
git-svn-id: http://code.djangoproject.com/svn/django/trunk@196 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2005-07-19 05:45:31 +00:00
Adrian Holovaty
7d553c0650
Improved TemplateDoesNotExist error message in django.core.template_file
...
git-svn-id: http://code.djangoproject.com/svn/django/trunk@194 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2005-07-19 04:40:57 +00:00
Adrian Holovaty
3ab5791383
Improved ViewDoesNotExist error messages in django.core.urlresolvers
...
git-svn-id: http://code.djangoproject.com/svn/django/trunk@193 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2005-07-19 04:30:23 +00:00
Adrian Holovaty
8f4fa5a4e7
Fixed #69 -- Implemented dictfetchone(), dictfetchmany() and dictfetchall() for mysql DB backend. Thanks, Manuzhai!
...
git-svn-id: http://code.djangoproject.com/svn/django/trunk@190 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2005-07-19 02:13:20 +00:00
Adrian Holovaty
62cc287b2b
Fixed #76 -- development server now serves images, too, at whatever relative URL is provided by ADMIN_MEDIA_PREFIX
...
git-svn-id: http://code.djangoproject.com/svn/django/trunk@186 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2005-07-18 22:49:04 +00:00
Adrian Holovaty
a7506973af
Moved default admin from media to django/conf/admin_media, so Django is able to introspect their location, in preparation for #76
...
git-svn-id: http://code.djangoproject.com/svn/django/trunk@185 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2005-07-18 22:35:04 +00:00
Adrian Holovaty
a7237aafac
Fixed #71 -- Changed default admin base_site template to use example.com instead of mysite.com. Thanks, pb@e-scribe.com
...
git-svn-id: http://code.djangoproject.com/svn/django/trunk@183 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2005-07-18 20:43:57 +00:00
Adrian Holovaty
12c04fbf29
Fixed bug in dynamically-generated docs -- ForeignKeys were throwing an exception
...
git-svn-id: http://code.djangoproject.com/svn/django/trunk@182 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2005-07-18 20:35:51 +00:00
Adrian Holovaty
cf4c164e9f
Changed core.handlers.modpython.populate_apache_request NOT to have side effects on http_response. This has no effect on legacy code but will prevent problems in new code
...
git-svn-id: http://code.djangoproject.com/svn/django/trunk@181 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2005-07-18 20:14:05 +00:00
Adrian Holovaty
8fd94405b5
Added django.middleware.cache, which lets you cache an entire Django-powered site by adding a line to your settings
...
git-svn-id: http://code.djangoproject.com/svn/django/trunk@178 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2005-07-18 19:07:37 +00:00
Adrian Holovaty
912253371d
Moved django.views.decorators.cache.compress_string into django.utils.text
...
git-svn-id: http://code.djangoproject.com/svn/django/trunk@175 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2005-07-18 17:23:04 +00:00
Adrian Holovaty
b68c478aa5
Added 'django-admin.py runserver', which starts a lightweight development server running Django on a local port
...
git-svn-id: http://code.djangoproject.com/svn/django/trunk@174 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2005-07-18 15:25:58 +00:00
Adrian Holovaty
78206fd08c
Fixed #56 -- MySQL id columns are now UNSIGNED. Thanks, Manuzhai!
...
git-svn-id: http://code.djangoproject.com/svn/django/trunk@171 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2005-07-18 13:53:45 +00:00
Adrian Holovaty
86d9ae269d
Moved django.bin.profiling.handler to django.core.handlers.profiler-hotshot
...
git-svn-id: http://code.djangoproject.com/svn/django/trunk@170 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2005-07-18 06:34:34 +00:00
Adrian Holovaty
ca3d89b70f
Added WSGI support. Created core.handlers package. Moved ALL mod_python-specific code to django.core.handlers.modpython. Note that django.core.handler is still a valid mod_python handler but IS DEPRECATED. Use django.core.handlers.modpython, instead.
...
git-svn-id: http://code.djangoproject.com/svn/django/trunk@169 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2005-07-18 06:30:26 +00:00
Adrian Holovaty
4e094e26e6
Renamed django.core.handler.CoreHandler to ModPythonHandler, in preparation for WSGI support
...
git-svn-id: http://code.djangoproject.com/svn/django/trunk@168 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2005-07-18 06:10:00 +00:00
Adrian Holovaty
feeeda969c
Rolled django.core.extensions.DjangoRequest into django.utils.httpwrappers.ModPythonRequest, in preparation for WSGI support
...
git-svn-id: http://code.djangoproject.com/svn/django/trunk@167 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2005-07-18 06:05:18 +00:00
Adrian Holovaty
246c1f88d9
Removed legacy CMSContext and CMSRequest from django.core.extensions, because all World Online code has been changed to remove those. This has no effect on anybody other than World Online
...
git-svn-id: http://code.djangoproject.com/svn/django/trunk@166 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2005-07-18 06:01:39 +00:00
Adrian Holovaty
ac2a7c116d
Changed django.utils.httpwrappers.parse_file_upload() NOT to be coupled to mod_python
...
git-svn-id: http://code.djangoproject.com/svn/django/trunk@165 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2005-07-18 05:52:06 +00:00
Adrian Holovaty
f3a43a2dd4
Folded django.core.handler.CoreHandler.get_request() into CoreHandler.call()
...
git-svn-id: http://code.djangoproject.com/svn/django/trunk@164 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2005-07-18 03:13:02 +00:00
Adrian Holovaty
683755118f
Fixed #53 -- Thanks, Dobbes!
...
git-svn-id: http://code.djangoproject.com/svn/django/trunk@162 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2005-07-18 02:38:44 +00:00
Adrian Holovaty
b1c543d091
Factored out database-specific date_trunc behavior into dbmod.get_date_trunc_sql(). Refs #46
...
git-svn-id: http://code.djangoproject.com/svn/django/trunk@161 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2005-07-17 20:16:06 +00:00
Adrian Holovaty
d4ddc06021
Changed core.db to give a friendlier error message if the DATABASE_ENGINE setting is invalid
...
git-svn-id: http://code.djangoproject.com/svn/django/trunk@160 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2005-07-17 20:03:24 +00:00
Adrian Holovaty
272b217557
Factored out database-specific date_extract behavior into dbmod.get_date_extract_sql(). Refs #46
...
git-svn-id: http://code.djangoproject.com/svn/django/trunk@159 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2005-07-17 18:23:34 +00:00
Adrian Holovaty
35e81ce5af
Changed models.auth.LogEntry.get_admin_url NOT to be hard-coded with an initial slash
...
git-svn-id: http://code.djangoproject.com/svn/django/trunk@158 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2005-07-17 17:44:57 +00:00
Adrian Holovaty
58df4ce636
Fixed #40 -- Removed legacy code from meta.py method_set_related_many_to_many(). Thanks, jforeman@hark.org
...
git-svn-id: http://code.djangoproject.com/svn/django/trunk@157 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2005-07-17 17:27:34 +00:00
Adrian Holovaty
6ae4def03b
Fixed #42 -- OneToOneField now works with SQL generation
...
git-svn-id: http://code.djangoproject.com/svn/django/trunk@156 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2005-07-17 17:22:17 +00:00
Wilson Miner
1680686e3a
Fixed path to icon_searchbox.png
...
git-svn-id: http://code.djangoproject.com/svn/django/trunk@153 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2005-07-17 16:14:29 +00:00
Wilson Miner
aef751972c
Fixed #43
...
git-svn-id: http://code.djangoproject.com/svn/django/trunk@147 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2005-07-17 15:35:22 +00:00
Adrian Holovaty
82f0468801
Changed generic admin changelist to order by ID if no other ordering is specified, rather than raising a scary exception
...
git-svn-id: http://code.djangoproject.com/svn/django/trunk@128 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2005-07-16 23:58:49 +00:00
Adrian Holovaty
cfcf3ca1e3
More installation streamlining/automation: Added adminapplist templatetag library and changed the default admin index.html template to display all installed apps that have admins
...
git-svn-id: http://code.djangoproject.com/svn/django/trunk@127 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2005-07-16 23:38:12 +00:00
Adrian Holovaty
a2a7fd0b82
Added help_text to auth.User.password_md5
...
git-svn-id: http://code.djangoproject.com/svn/django/trunk@126 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2005-07-16 23:34:07 +00:00
Adrian Holovaty
d9e5a4ea5b
Removed an unneeded line of code in django/templatetags/adminmedia.py
...
git-svn-id: http://code.djangoproject.com/svn/django/trunk@125 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2005-07-16 23:00:04 +00:00
Adrian Holovaty
a22f823e00
More installation streamlining: Added default urlconfs, for both main and admin, to project_template. Changed ROOT_URLCONF in default main and admin settings to point at their respective default urlconfs
...
git-svn-id: http://code.djangoproject.com/svn/django/trunk@124 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2005-07-16 22:58:29 +00:00
Adrian Holovaty
820e12dac6
Temporarily commented-out the link to 'forgotten your password?' on the default admin login.html template
...
git-svn-id: http://code.djangoproject.com/svn/django/trunk@123 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2005-07-16 22:44:37 +00:00
Adrian Holovaty
1e0fb3b7a3
Added helpful error message if DATABASE_NAME or DATABASE_USER is blank for postgresql
...
git-svn-id: http://code.djangoproject.com/svn/django/trunk@122 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2005-07-16 22:21:50 +00:00
Adrian Holovaty
60bdadb9a3
Moved django.core.handler.ImproperlyConfigured into django.core.exceptions
...
git-svn-id: http://code.djangoproject.com/svn/django/trunk@120 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2005-07-16 22:12:24 +00:00
Adrian Holovaty
8cb4eeeafe
Changed delete_stage admin view to run strip_tags on repr() of object to be deleted
...
git-svn-id: http://code.djangoproject.com/svn/django/trunk@116 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2005-07-16 21:21:02 +00:00
Adrian Holovaty
caef61945d
Fixed #39 -- Thanks for the research, deelan!
...
git-svn-id: http://code.djangoproject.com/svn/django/trunk@113 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2005-07-16 21:10:25 +00:00
Adrian Holovaty
5721396426
Fixed inconsistent capitalization in [109]
...
git-svn-id: http://code.djangoproject.com/svn/django/trunk@110 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2005-07-16 16:56:27 +00:00
Adrian Holovaty
361be49fe7
Changed postgresql DB backend so that it gives a helpful error message if people are using psycopg 2 instead of version 1
...
git-svn-id: http://code.djangoproject.com/svn/django/trunk@109 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2005-07-16 16:55:11 +00:00
Adrian Holovaty
68baafc110
Added ADMIN_MEDIA_PREFIX setting instead of hard-coding /m/
...
git-svn-id: http://code.djangoproject.com/svn/django/trunk@108 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2005-07-16 16:38:28 +00:00
Jacob Kaplan-Moss
9049477738
Changed [105] to match our code standards
...
git-svn-id: http://code.djangoproject.com/svn/django/trunk@106 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2005-07-16 16:10:04 +00:00
Jacob Kaplan-Moss
f69ce6c2b3
django.conf.settings now fails loudly if DJANGO_SETTINGS_MODULE is broken in any way.
...
git-svn-id: http://code.djangoproject.com/svn/django/trunk@105 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2005-07-16 16:07:04 +00:00
Adrian Holovaty
fca9ba3f8c
Set executable bit on django-admin.py
...
git-svn-id: http://code.djangoproject.com/svn/django/trunk@102 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2005-07-16 06:00:19 +00:00
Adrian Holovaty
2b40dee38d
Changed django-admin so that it doesn't load django.core.db or django.core.meta unless it needs to. As a result, 'django-admin startproject' works even if the database parameters are set incorrectly
...
git-svn-id: http://code.djangoproject.com/svn/django/trunk@101 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2005-07-16 05:44:50 +00:00
Adrian Holovaty
c0daa77ea6
django-admin.py startproject now automatically points admin TEMPLATE_DIRS setting at the location of the default admin templates
...
git-svn-id: http://code.djangoproject.com/svn/django/trunk@95 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2005-07-16 04:07:06 +00:00
Adrian Holovaty
635220c5cc
Moved default admin templates from templates.admin to django.conf.admin_templates
...
git-svn-id: http://code.djangoproject.com/svn/django/trunk@94 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2005-07-16 04:02:41 +00:00
Adrian Holovaty
d095db81f5
'django-admin.py init' now creates a site in the sites table, and project_template.settings.main.SITE_ID is now set to 1
...
git-svn-id: http://code.djangoproject.com/svn/django/trunk@93 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2005-07-16 03:48:36 +00:00
Adrian Holovaty
40b8afaf32
Added ROOT_URLCONF and MIDDLEWARE_CLASSES to project_template.settings.admin
...
git-svn-id: http://code.djangoproject.com/svn/django/trunk@91 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2005-07-16 03:12:07 +00:00
Adrian Holovaty
8d0610d054
Gave django.core.meta.Model a repr(), as a fallback
...
git-svn-id: http://code.djangoproject.com/svn/django/trunk@89 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2005-07-15 23:48:54 +00:00
Adrian Holovaty
dc5f2506d1
Changed 'django-admin sqlclear' to output deletion of content_types table now that we're not using ON DELETE CASCADE anymore
...
git-svn-id: http://code.djangoproject.com/svn/django/trunk@88 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2005-07-15 23:43:17 +00:00
Adrian Holovaty
0a35fce98a
Changed 'django-admin startapp' so that it try to write to INSTALLED_APPS magically. Also changed 'django-admin sqlclear' to reverse the output
...
git-svn-id: http://code.djangoproject.com/svn/django/trunk@87 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2005-07-15 23:41:39 +00:00
Adrian Holovaty
03f72b629d
Fixed small bug in auto-generated comment in project_template.settings.main
...
git-svn-id: http://code.djangoproject.com/svn/django/trunk@83 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2005-07-15 22:36:26 +00:00
Adrian Holovaty
fd5b0fa55c
Added project_template.settings.admin
...
git-svn-id: http://code.djangoproject.com/svn/django/trunk@82 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2005-07-15 22:35:17 +00:00
Adrian Holovaty
5c7b04122a
Added DATABASE_PASSWORD stub to project_template/settings/main
...
git-svn-id: http://code.djangoproject.com/svn/django/trunk@81 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2005-07-15 22:32:37 +00:00
Adrian Holovaty
8718675469
Changed DEBUG to be True by default in new projects
...
git-svn-id: http://code.djangoproject.com/svn/django/trunk@80 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2005-07-15 22:29:10 +00:00
Adrian Holovaty
d75fde94a7
Changed django-admin startproject so that it doesn't copy .pyc files
...
git-svn-id: http://code.djangoproject.com/svn/django/trunk@79 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2005-07-15 22:24:51 +00:00
Adrian Holovaty
41c99f35db
Changed setup.py author and added django-admin to distutils 'scripts'
...
git-svn-id: http://code.djangoproject.com/svn/django/trunk@68 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2005-07-15 20:46:05 +00:00
Adrian Holovaty
775f433988
Moved django.bin.setup to root level and converted it to use setuptools. Still not ready for prime time, though
...
git-svn-id: http://code.djangoproject.com/svn/django/trunk@65 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2005-07-15 19:49:10 +00:00
Jacob Kaplan-Moss
8acc6048e8
Removed the vestigal get_choices_from from ManyToMany relations.
...
git-svn-id: http://code.djangoproject.com/svn/django/trunk@64 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2005-07-15 19:44:52 +00:00
Adrian Holovaty
c8cae5bed9
Removed gunk from legacy django.bin.setup, although distutils installation isn't done yet
...
git-svn-id: http://code.djangoproject.com/svn/django/trunk@60 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2005-07-15 19:18:09 +00:00
Adrian Holovaty
dc2933f73b
Fixed #3 -- Made OneToOneField act like ForeignKey and ManyToManyField. This is the last big API change before the official launch.
...
git-svn-id: http://code.djangoproject.com/svn/django/trunk@59 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2005-07-15 18:40:21 +00:00
Adrian Holovaty
f4c581158d
Renamed CMSRequest to DjangoRequest, and CMSContext to DjangoContext. Old code will still work.
...
git-svn-id: http://code.djangoproject.com/svn/django/trunk@57 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2005-07-15 17:09:01 +00:00
Adrian Holovaty
a051772b85
Changed mentions of CMS to Django in django.core xheaders and exceptions
...
git-svn-id: http://code.djangoproject.com/svn/django/trunk@55 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2005-07-15 16:52:08 +00:00
Adrian Holovaty
eb9c9ab4d0
Changed django.core.mail to use [Django] prefix instead of [CMS]
...
git-svn-id: http://code.djangoproject.com/svn/django/trunk@54 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2005-07-15 16:47:19 +00:00
Adrian Holovaty
fda1f68492
Fixed bug in [29]
...
git-svn-id: http://code.djangoproject.com/svn/django/trunk@31 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2005-07-14 18:37:10 +00:00
Adrian Holovaty
d9d6345e3f
Fixed bug in [29]
...
git-svn-id: http://code.djangoproject.com/svn/django/trunk@30 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2005-07-14 18:34:52 +00:00
Adrian Holovaty
f98724e57a
Fixed bug in django.contrib.comments urlconf
...
git-svn-id: http://code.djangoproject.com/svn/django/trunk@29 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2005-07-14 18:32:59 +00:00
Adrian Holovaty
0bc849ff89
Created django.contrib and moved comments into it
...
git-svn-id: http://code.djangoproject.com/svn/django/trunk@28 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2005-07-14 18:20:03 +00:00
Adrian Holovaty
8c098891e2
Removed World-Online-specific stuff from django.conf.global_settings
...
git-svn-id: http://code.djangoproject.com/svn/django/trunk@11 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2005-07-14 04:27:55 +00:00
Adrian Holovaty
d3abdd8731
Removed hard-coded Adrian and Jacob in global_settings.ADMINS
...
git-svn-id: http://code.djangoproject.com/svn/django/trunk@10 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2005-07-14 04:03:11 +00:00
Adrian Holovaty
2e4322123f
Changed many-to-many API to be get_FOO_list instead of get_FOOs
...
git-svn-id: http://code.djangoproject.com/svn/django/trunk@9 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2005-07-14 03:17:09 +00:00
Adrian Holovaty
2fb6c3b845
Fixed #30 -- django-admin startproject and startapp now ignore directories starting with a dot
...
git-svn-id: http://code.djangoproject.com/svn/django/trunk@8 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2005-07-14 01:32:23 +00:00
Adrian Holovaty
3c0ee70e7c
Changed db/backends/postgresql.py to add the password and host params only if they're not blank
...
git-svn-id: http://code.djangoproject.com/svn/django/trunk@6 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2005-07-13 20:59:56 +00:00
Adrian Holovaty
ed114e1510
Imported Django from private SVN repository (created from r. 8825)
...
git-svn-id: http://code.djangoproject.com/svn/django/trunk@3 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2005-07-13 01:25:57 +00:00