Commit Graph

2689 Commits

Author SHA1 Message Date
Russell Keith-Magee 4ccdf127d0 Fixes #3447, Refs #2160 -- Reverting change [4459] because it breaks admin. Apologies for the inconvenience, guys.
git-svn-id: http://code.djangoproject.com/svn/django/trunk@4463 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2007-02-07 22:56:53 +00:00
Jacob Kaplan-Moss f28558348b Trivial whitespace chance to AUTHORS to test the trac commit hook. Refs #1 also for testing, but it doesn't really.
git-svn-id: http://code.djangoproject.com/svn/django/trunk@4462 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2007-02-06 14:09:05 +00:00
Jacob Kaplan-Moss b5f9176115 Fixed #3441: VariableDoesNotExist is now a bit lazier about rendering its error message. Thanks, Brian Harring.
git-svn-id: http://code.djangoproject.com/svn/django/trunk@4461 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2007-02-06 13:59:24 +00:00
Adrian Holovaty 04c4a031ba newforms: Changed ChoiceField error message *not* to include user-provided input
git-svn-id: http://code.djangoproject.com/svn/django/trunk@4460 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2007-02-05 21:26:57 +00:00
Russell Keith-Magee 795de3a67c Fixed #2160 -- Modified object save logic to check for ``pk is None``, rather than ``bool(pk) == False``. This allows primary keys to take a value of 0. Thanks for the report, fgutierrez@aureal.com.pe.
git-svn-id: http://code.djangoproject.com/svn/django/trunk@4459 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2007-02-04 00:54:30 +00:00
Jacob Kaplan-Moss 695302ce92 Fixed #3320: upgraded django.utils.simplejson to simplejson version 1.5. Thanks, Lawrence Oluyede.
git-svn-id: http://code.djangoproject.com/svn/django/trunk@4454 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2007-01-30 22:34:15 +00:00
Jacob Kaplan-Moss 1e3d035fcc Fixed Python 2.4-ism in modeltests/test_client. Thanks for the find, Robert Myers.
git-svn-id: http://code.djangoproject.com/svn/django/trunk@4451 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2007-01-29 16:48:31 +00:00
Adrian Holovaty 5aea495ac3 Improved newforms.models.save_for_instance() to set many-to-many values via ID instead of instance, to save on a database query, thanks to [4448]
git-svn-id: http://code.djangoproject.com/svn/django/trunk@4449 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2007-01-29 16:12:17 +00:00
Adrian Holovaty d28a63cc00 Fixed #3389 -- Many-to-many sets can now be assigned with primary key values
git-svn-id: http://code.djangoproject.com/svn/django/trunk@4448 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2007-01-29 16:09:25 +00:00
Adrian Holovaty a031cadf4e Fixed #3385 -- Fixed broken link in docs/design_philosophies.txt
git-svn-id: http://code.djangoproject.com/svn/django/trunk@4445 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2007-01-29 00:25:14 +00:00
Adrian Holovaty 829e4c70f8 newforms: Changed database Field formfield() methods to pass help_text to the formfield help_text
git-svn-id: http://code.djangoproject.com/svn/django/trunk@4442 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2007-01-28 22:36:02 +00:00
Adrian Holovaty cf75fcc832 Fixed #3255 -- Added help_text argument to newforms Field class.
git-svn-id: http://code.djangoproject.com/svn/django/trunk@4440 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2007-01-28 22:10:04 +00:00
Adrian Holovaty 83768bf067 Fixed #3263 -- newforms form_for_model() and form_for_instance() now handle foreign-key and many-to-many data properly. Thanks for the patch, Jeff Hilyard
git-svn-id: http://code.djangoproject.com/svn/django/trunk@4439 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2007-01-28 04:56:54 +00:00
Adrian Holovaty 546f16d323 newforms: Added a unit test that tests dynamic field addition with base fields defined on the class
git-svn-id: http://code.djangoproject.com/svn/django/trunk@4438 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2007-01-27 22:16:16 +00:00
Adrian Holovaty c93686c698 Fixed #3334 -- Changed newforms Form class construction so that appending to (or altering) self.fields affects only the instance, not the class. As a consequence, self.fields is created in Form.__init__(). The form metaclass now creates a variable self.base_fields instead of self.fields.
git-svn-id: http://code.djangoproject.com/svn/django/trunk@4437 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2007-01-27 22:06:56 +00:00
Adrian Holovaty c0e01416b6 Fixed #3312 -- CheckboxSelectMultiple no longer uses duplicate ID attributes for each checkbox
git-svn-id: http://code.djangoproject.com/svn/django/trunk@4436 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2007-01-27 21:41:32 +00:00
Adrian Holovaty 982a9443e1 Fixed #3300 -- Changed newforms Select widget to collapse 'choices' into a list if it's an iterable, so the iterable can be iterated over multiple times.
git-svn-id: http://code.djangoproject.com/svn/django/trunk@4435 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2007-01-27 21:30:26 +00:00
Russell Keith-Magee db8525cc01 Fixed a flaw in the serializers that prevented OneToOneFields being serialized as JSON objects.
git-svn-id: http://code.djangoproject.com/svn/django/trunk@4433 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2007-01-27 13:42:51 +00:00
Russell Keith-Magee 54feaca70f Fixed #3098 -- Added db_table parameter to m2m fields, allowing the specification of a custom table name for the m2m table. Thanks, Wolfram Kriesing.
git-svn-id: http://code.djangoproject.com/svn/django/trunk@4429 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2007-01-25 13:47:55 +00:00
Russell Keith-Magee 12ad69c0b4 Fixed #3215, #3081, #2749 -- Fixed problem with mistaken deletion of objects when a GenericRelation is involved. Thanks to Thomas Steinacher for helping to narrow down the problem (#3215), and Alex Dedul (#3081) for the starting point of a working patch.
git-svn-id: http://code.djangoproject.com/svn/django/trunk@4428 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2007-01-25 11:24:17 +00:00
Adrian Holovaty dfee6b328e Fixed #3302 -- Added small note to docs/django-admin.txt about ordering of initial-data SQL files
git-svn-id: http://code.djangoproject.com/svn/django/trunk@4425 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2007-01-25 00:53:30 +00:00
Adrian Holovaty de60cf04d0 Fixed #3299 -- Added 'site' to the list of INVALID_PROJECT_NAMES and improved the error message. Thanks for the patch, ubernostrum
git-svn-id: http://code.djangoproject.com/svn/django/trunk@4424 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2007-01-25 00:52:05 +00:00
Adrian Holovaty 9d94355885 Fixed #2133 -- Invalid session cookie no longer causes fatal error. Thanks, greg-django@abbas.org
git-svn-id: http://code.djangoproject.com/svn/django/trunk@4423 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2007-01-25 00:47:44 +00:00
Adrian Holovaty 81c839014d Fixed #1336 -- USStateField no longer throws exception when data is None
git-svn-id: http://code.djangoproject.com/svn/django/trunk@4422 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2007-01-25 00:43:44 +00:00
Adrian Holovaty 1b0b3febe1 Fixed ReST error in docs/contributing.txt
git-svn-id: http://code.djangoproject.com/svn/django/trunk@4421 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2007-01-24 20:11:54 +00:00
Adrian Holovaty 8e54c49784 Fixed #3333 -- Docs now use relative links, not hard-coded djangoproject.com links. Thanks for the patch, SmileyChris
git-svn-id: http://code.djangoproject.com/svn/django/trunk@4420 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2007-01-24 20:08:47 +00:00
Adrian Holovaty 788f8f7454 newforms: Implemented NullBooleanField and NullBooleanSelect
git-svn-id: http://code.djangoproject.com/svn/django/trunk@4411 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2007-01-24 05:23:19 +00:00
Adrian Holovaty 85fe107996 Made tiny grammar change to docs/newforms.txt. Thanks, Rex
git-svn-id: http://code.djangoproject.com/svn/django/trunk@4409 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2007-01-24 03:30:32 +00:00
Adrian Holovaty 8a6c337f2a newforms: Added MultiValueField, SplitDateTimeField, MultiWidget, SplitDateTimeWidget
git-svn-id: http://code.djangoproject.com/svn/django/trunk@4403 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2007-01-23 20:23:07 +00:00
Adrian Holovaty 5b96692894 Fixed #2296 -- Documented required trailing slash for MEDIA_URL. Thanks, nwp@nz.lemon-computing.com
git-svn-id: http://code.djangoproject.com/svn/django/trunk@4399 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2007-01-23 02:30:55 +00:00
Adrian Holovaty 2633035261 Fixed #3127 -- Added i18n hooks to NullBooleanField. Thanks, automatthias
git-svn-id: http://code.djangoproject.com/svn/django/trunk@4398 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2007-01-23 02:24:17 +00:00
Adrian Holovaty 7d1b483d07 Fixed a couple more ReST errors I found in docs/generic_views.txt
git-svn-id: http://code.djangoproject.com/svn/django/trunk@4397 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2007-01-23 02:15:36 +00:00
Adrian Holovaty 2933110569 Fixed #3234 -- Fixed ReST error in docs/generic_views.txt. Thanks, paolo
git-svn-id: http://code.djangoproject.com/svn/django/trunk@4396 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2007-01-23 02:13:25 +00:00
Adrian Holovaty 9ad98054db Fixed small inconsistency in docs/url_dispatch.txt 'New in Django development version' text
git-svn-id: http://code.djangoproject.com/svn/django/trunk@4395 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2007-01-23 02:11:33 +00:00
Adrian Holovaty 13280259a8 Fixed #3283 -- Added support for empty QuerySets via none() method. Thanks for the patch, medhat
git-svn-id: http://code.djangoproject.com/svn/django/trunk@4394 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2007-01-23 02:11:08 +00:00
Adrian Holovaty 31bdd8d720 Fixed #3282 -- Fixed incorrect statement in docs/tutorial03.txt. Thanks, dave.pawson@gmail.com and Simon G.
git-svn-id: http://code.djangoproject.com/svn/django/trunk@4393 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2007-01-23 02:02:35 +00:00
Adrian Holovaty 9afddbe422 Fixed #3346 -- Documented that search_fields Admin option can use related models. Thanks for the patch, Robert Myers and Gary Wilson
git-svn-id: http://code.djangoproject.com/svn/django/trunk@4392 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2007-01-23 02:01:20 +00:00
Adrian Holovaty 2e042f33e3 Changed database Field formfield() methods to take arbitrary kwargs, which are passed directly into the given Field constructor
git-svn-id: http://code.djangoproject.com/svn/django/trunk@4389 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2007-01-22 06:32:14 +00:00
Adrian Holovaty af377b13e1 newforms: Added formfield_callback argument to form_for_model and form_for_instance. The admin reworking will need this hook.
git-svn-id: http://code.djangoproject.com/svn/django/trunk@4387 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2007-01-22 06:10:47 +00:00
Adrian Holovaty 76f6dd42cc Fixed #3196 -- Fixed inconsistency in setting choices on ChoiceFields dynamically
git-svn-id: http://code.djangoproject.com/svn/django/trunk@4379 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2007-01-21 01:29:01 +00:00
Adrian Holovaty f073318668 newforms: Fixed confusing behavior when setting choices for ChoiceFields and their corresponding Widgets. Now, a Widget uses the choices from its ChoiceField regardless of whether the Widget has its own choices.
git-svn-id: http://code.djangoproject.com/svn/django/trunk@4378 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2007-01-21 01:10:55 +00:00
Adrian Holovaty c770803f72 Added SortedDict.value_for_index() method in django.utils.datastructures
git-svn-id: http://code.djangoproject.com/svn/django/trunk@4373 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2007-01-21 00:06:55 +00:00
Adrian Holovaty 93eebd95cb newforms: Moved flatatt function from widgets.py to util.py
git-svn-id: http://code.djangoproject.com/svn/django/trunk@4370 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2007-01-20 20:33:23 +00:00
Adrian Holovaty a154d94e45 newforms: Added attrs optional argument to BoundForm.label_tag()
git-svn-id: http://code.djangoproject.com/svn/django/trunk@4369 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2007-01-20 20:31:17 +00:00
Adrian Holovaty 8f8b77bb55 Fixed #3321 -- Fixed typo in docs/testing.txt (which still needs to be proofread). Thanks, russblau@imapmail.org
git-svn-id: http://code.djangoproject.com/svn/django/trunk@4368 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2007-01-20 17:34:35 +00:00
Adrian Holovaty 230b746f6c Fixed #3303 -- Cleaned some newforms clean() method implementations. Thanks for the patch, SmileyChris
git-svn-id: http://code.djangoproject.com/svn/django/trunk@4367 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2007-01-20 17:31:45 +00:00
Adrian Holovaty 5e8c1a6c47 Fixed #3337 -- Changed newforms Field subclasses to use super(). Thanks for the patch, Dirk Datzert
git-svn-id: http://code.djangoproject.com/svn/django/trunk@4366 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2007-01-20 17:25:42 +00:00
Adrian Holovaty 51a21bcbc3 Changed one link in docs/url_dispatch.txt to use a relative link, as an experiment to see whether it'll work
git-svn-id: http://code.djangoproject.com/svn/django/trunk@4358 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2007-01-19 17:21:04 +00:00
Adrian Holovaty bc52fdc446 Fixed #3317 -- Fixed typos in docs/testing.txt. Thanks for the patch, Marc Fargas
git-svn-id: http://code.djangoproject.com/svn/django/trunk@4349 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2007-01-19 03:18:36 +00:00
Adrian Holovaty 8a3fe9d937 Fixed #3318 -- Fixed out-of-date info in docs/contributing.txt. Thanks for the patch, Marc Fargas
git-svn-id: http://code.djangoproject.com/svn/django/trunk@4348 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2007-01-19 03:16:54 +00:00