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