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
|
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
|
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
|
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
|
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
|
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
|
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
|
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
|
f2a3deb087
|
Fixed #3281 -- newforms: URLField now works properly with required=False and verify_exists=True together. Thanks, zendak
git-svn-id: http://code.djangoproject.com/svn/django/trunk@4313 bcc190cf-cafb-0310-a4f2-bffc1f526a37
|
2007-01-13 05:19:15 +00:00 |
Adrian Holovaty
|
6b31f95516
|
Fixed #3293 -- newforms: Changed IntegerField.clean() to return None if field is not required and empty. Thanks, Honza Kral
git-svn-id: http://code.djangoproject.com/svn/django/trunk@4312 bcc190cf-cafb-0310-a4f2-bffc1f526a37
|
2007-01-13 05:08:07 +00:00 |
Adrian Holovaty
|
a0137c41f3
|
Fixed #3289 -- newforms: Added value_from_datadict method to MultipleHiddenInput
git-svn-id: http://code.djangoproject.com/svn/django/trunk@4311 bcc190cf-cafb-0310-a4f2-bffc1f526a37
|
2007-01-13 04:51:57 +00:00 |
Jacob Kaplan-Moss
|
43193c1821
|
Fixed #3287: method columns in the admin changelist can now have a {{{boolean}}} attribute that uses the clever little checkmark icons instead of the ugly "True" or "False" strings. Thanks for the patch, xian@mintchaos.com
git-svn-id: http://code.djangoproject.com/svn/django/trunk@4309 bcc190cf-cafb-0310-a4f2-bffc1f526a37
|
2007-01-12 19:40:06 +00:00 |
Jacob Kaplan-Moss
|
c1b11091e7
|
Fixed #3290: DummyCache now conforms to the BaseCache interface correctly. Thanks, Ned Batchelder.
git-svn-id: http://code.djangoproject.com/svn/django/trunk@4308 bcc190cf-cafb-0310-a4f2-bffc1f526a37
|
2007-01-12 15:16:55 +00:00 |
Jacob Kaplan-Moss
|
b118b28bac
|
Fixed #1717: ContentType.objects.get_for_manager() is now cached for a small performance gain when dealing with content-types regularly. Thanks, Dave St.Germain.
git-svn-id: http://code.djangoproject.com/svn/django/trunk@4307 bcc190cf-cafb-0310-a4f2-bffc1f526a37
|
2007-01-12 15:15:05 +00:00 |
Adrian Holovaty
|
963ccd7cb4
|
Fixed #3267 -- newforms: Changed database TextField to render as Textarea in form_for_model() forms. Thanks for the patch, Philipp Keller
git-svn-id: http://code.djangoproject.com/svn/django/trunk@4305 bcc190cf-cafb-0310-a4f2-bffc1f526a37
|
2007-01-10 23:34:37 +00:00 |
Adrian Holovaty
|
fa38ce7207
|
Fixed #3266 -- newforms: Made RadioSelect accept funky characters. Thanks for reporting, Honza Kral
git-svn-id: http://code.djangoproject.com/svn/django/trunk@4304 bcc190cf-cafb-0310-a4f2-bffc1f526a37
|
2007-01-10 23:25:29 +00:00 |
Adrian Holovaty
|
f6a7002ef1
|
Fixed #3278 -- newforms: Fixed bug in DeclarativeFieldsMetaclass where it inadvertently overrode the class' name. Thanks, russblau@imapmail.org
git-svn-id: http://code.djangoproject.com/svn/django/trunk@4303 bcc190cf-cafb-0310-a4f2-bffc1f526a37
|
2007-01-10 22:46:06 +00:00 |
Adrian Holovaty
|
2144a2c23f
|
Fixed #3269 -- Fixed typo in admin change_password.html template. Thanks, ramiro
git-svn-id: http://code.djangoproject.com/svn/django/trunk@4302 bcc190cf-cafb-0310-a4f2-bffc1f526a37
|
2007-01-10 22:34:37 +00:00 |
Adrian Holovaty
|
78b89ff118
|
Fixed #3232 -- newforms: Added save_instance(), which saves a given bound form's clean_data into a given model instance with the same field names
git-svn-id: http://code.djangoproject.com/svn/django/trunk@4300 bcc190cf-cafb-0310-a4f2-bffc1f526a37
|
2007-01-09 05:49:47 +00:00 |
Adrian Holovaty
|
d08112a6a7
|
newforms: Changed model auto-Form generation so that create() and apply_changes() are now both called save() -- for the purposes of simplicity
git-svn-id: http://code.djangoproject.com/svn/django/trunk@4299 bcc190cf-cafb-0310-a4f2-bffc1f526a37
|
2007-01-09 05:22:48 +00:00 |
Adrian Holovaty
|
fb60a6ff0a
|
Fixed #3193 -- newforms: Modified as_hidden() to handle MultipleChoiceField correctly. Thanks for the report, Honza Kral
git-svn-id: http://code.djangoproject.com/svn/django/trunk@4298 bcc190cf-cafb-0310-a4f2-bffc1f526a37
|
2007-01-09 05:12:25 +00:00 |
Adrian Holovaty
|
2e148d7064
|
newforms: Added 'initial' parameter to Form, which lets initial data be specified dynamically
git-svn-id: http://code.djangoproject.com/svn/django/trunk@4297 bcc190cf-cafb-0310-a4f2-bffc1f526a37
|
2007-01-09 04:39:44 +00:00 |
Adrian Holovaty
|
54b8277ffb
|
newforms: Fixed Unicode issue on Python 2.3 when a BoundField's __unicode__() included non-ASCII characters. Thanks for reporting the error, Johannes Froehlich
git-svn-id: http://code.djangoproject.com/svn/django/trunk@4296 bcc190cf-cafb-0310-a4f2-bffc1f526a37
|
2007-01-09 03:37:22 +00:00 |
Jacob Kaplan-Moss
|
f6390e8983
|
Fixed #1477: URLFields now accept a maxlength parameter. Thanks, Matt Croydon.
git-svn-id: http://code.djangoproject.com/svn/django/trunk@4295 bcc190cf-cafb-0310-a4f2-bffc1f526a37
|
2007-01-08 20:28:31 +00:00 |
Adrian Holovaty
|
02f690f738
|
newforms: Changed Form.ignore_errors to Form.is_bound, which is more descriptive and can be helpful to access at runtime
git-svn-id: http://code.djangoproject.com/svn/django/trunk@4286 bcc190cf-cafb-0310-a4f2-bffc1f526a37
|
2007-01-05 00:04:38 +00:00 |
Adrian Holovaty
|
b1f6b376c0
|
newforms: Changed Form so that clean_data only exists if a Form is valid. Thanks for the idea, Honza Kral
git-svn-id: http://code.djangoproject.com/svn/django/trunk@4284 bcc190cf-cafb-0310-a4f2-bffc1f526a37
|
2007-01-04 06:25:53 +00:00 |
Russell Keith-Magee
|
ddb9b7d57a
|
Fixed #2473 -- Added special case for '__in=[]' (empty set) queries, because 'WHERE attr IN ()' is invalid SQL on many backends. Thanks, Gary Wilson.
git-svn-id: http://code.djangoproject.com/svn/django/trunk@4283 bcc190cf-cafb-0310-a4f2-bffc1f526a37
|
2007-01-04 04:00:16 +00:00 |
Russell Keith-Magee
|
e1c6e987d0
|
Fixed #2756 -- Modified the get_object_or_404/get_list_or_404 shortcuts to accept model managers as well as model classes. Thanks, Gary Wilson.
git-svn-id: http://code.djangoproject.com/svn/django/trunk@4275 bcc190cf-cafb-0310-a4f2-bffc1f526a37
|
2007-01-03 14:16:58 +00:00 |
Russell Keith-Magee
|
c3f891210a
|
Fixes #3176, #3004 -- Added an argument to the floatfilter to allow users to specify precision of floats, Thanks, Eric Floehr.
git-svn-id: http://code.djangoproject.com/svn/django/trunk@4274 bcc190cf-cafb-0310-a4f2-bffc1f526a37
|
2007-01-03 05:29:34 +00:00 |
Adrian Holovaty
|
8701cde8db
|
Fixed #3216 -- Added shebang statement to daily_cleanup.py
git-svn-id: http://code.djangoproject.com/svn/django/trunk@4271 bcc190cf-cafb-0310-a4f2-bffc1f526a37
|
2007-01-02 20:39:30 +00:00 |
Adrian Holovaty
|
d04a2e792c
|
Fixed typo in a docstring in django/contrib/admin/views/main.py
git-svn-id: http://code.djangoproject.com/svn/django/trunk@4269 bcc190cf-cafb-0310-a4f2-bffc1f526a37
|
2006-12-30 07:48:11 +00:00 |
Adrian Holovaty
|
f21cbb40b2
|
Fixed #3151 -- Improved MySQL backend not to send 'SET NAMES utf8' before every query. Thanks for the patch, smurf@smurf.noris.de
git-svn-id: http://code.djangoproject.com/svn/django/trunk@4267 bcc190cf-cafb-0310-a4f2-bffc1f526a37
|
2006-12-30 07:21:01 +00:00 |
Adrian Holovaty
|
7180207328
|
Fixed #3166 -- Added admin 'Change user password' view. Thanks for the patch, SmileyChris
git-svn-id: http://code.djangoproject.com/svn/django/trunk@4266 bcc190cf-cafb-0310-a4f2-bffc1f526a37
|
2006-12-30 07:16:25 +00:00 |
Adrian Holovaty
|
b9fdf9abb8
|
newforms: Got form_for_instance() to select initial ManyToManyField values properly
git-svn-id: http://code.djangoproject.com/svn/django/trunk@4261 bcc190cf-cafb-0310-a4f2-bffc1f526a37
|
2006-12-30 00:12:02 +00:00 |
Adrian Holovaty
|
0919920bc0
|
Added missing import to django.contrib.formtools.preview from [4259]. Thanks, Vadim Macagon
git-svn-id: http://code.djangoproject.com/svn/django/trunk@4260 bcc190cf-cafb-0310-a4f2-bffc1f526a37
|
2006-12-30 00:06:28 +00:00 |
Adrian Holovaty
|
3dbaf60b86
|
Fixed #3204 -- Changed FormPreview to use RequestContext
git-svn-id: http://code.djangoproject.com/svn/django/trunk@4259 bcc190cf-cafb-0310-a4f2-bffc1f526a37
|
2006-12-29 19:42:56 +00:00 |
Adrian Holovaty
|
d681b084c3
|
Fixed #3205 -- Fixed bug in custom postgresql executemany wrapper. Thanks for reporting, jeffreyz@broadpark.no
git-svn-id: http://code.djangoproject.com/svn/django/trunk@4257 bcc190cf-cafb-0310-a4f2-bffc1f526a37
|
2006-12-29 19:01:29 +00:00 |
Adrian Holovaty
|
bcb7a31b2c
|
newforms: Implemented apply_changes() method for form_for_instance Forms
git-svn-id: http://code.djangoproject.com/svn/django/trunk@4253 bcc190cf-cafb-0310-a4f2-bffc1f526a37
|
2006-12-28 02:34:53 +00:00 |
Adrian Holovaty
|
34dce706ee
|
Added value_from_object method to db Field class
git-svn-id: http://code.djangoproject.com/svn/django/trunk@4252 bcc190cf-cafb-0310-a4f2-bffc1f526a37
|
2006-12-28 02:27:14 +00:00 |
Adrian Holovaty
|
f974b1bb5a
|
Negligible style fix to db/models/fields/__init__.py
git-svn-id: http://code.djangoproject.com/svn/django/trunk@4251 bcc190cf-cafb-0310-a4f2-bffc1f526a37
|
2006-12-28 02:20:29 +00:00 |
Adrian Holovaty
|
71ce11f617
|
newforms: Implemented form_for_instance(). The resulting Form class does not yet have a method that saves the changes
git-svn-id: http://code.djangoproject.com/svn/django/trunk@4250 bcc190cf-cafb-0310-a4f2-bffc1f526a37
|
2006-12-28 01:16:29 +00:00 |
Adrian Holovaty
|
2cb0fe71a2
|
newforms: Added 'initial' parameter to Field. This allows you to specify initial data that will be displayed with the form if no data is given. Also added unit tests.
git-svn-id: http://code.djangoproject.com/svn/django/trunk@4249 bcc190cf-cafb-0310-a4f2-bffc1f526a37
|
2006-12-28 00:01:52 +00:00 |
Adrian Holovaty
|
016d75cc7f
|
newforms: Implemented formfield() for database OneToOneField class. Not sure about this one, but one-to-one fields are eventually going to be refactored so it's not a big deal if it doesn't work
git-svn-id: http://code.djangoproject.com/svn/django/trunk@4248 bcc190cf-cafb-0310-a4f2-bffc1f526a37
|
2006-12-27 05:27:47 +00:00 |
Adrian Holovaty
|
6a75c8a52e
|
newforms: Implemented formfield() for database ForeignKey class and added unit tests
git-svn-id: http://code.djangoproject.com/svn/django/trunk@4247 bcc190cf-cafb-0310-a4f2-bffc1f526a37
|
2006-12-27 05:23:21 +00:00 |
Adrian Holovaty
|
d853278253
|
newforms: Implemented formfield() for database ManyToManyField class and added unit tests
git-svn-id: http://code.djangoproject.com/svn/django/trunk@4246 bcc190cf-cafb-0310-a4f2-bffc1f526a37
|
2006-12-27 05:15:22 +00:00 |
Adrian Holovaty
|
252606c711
|
Fixed #3115 -- Changed postgresql backend to convert all Unicode strings to bytestrings according to DEFAULT_CHARSET. This is necessary because psycopg1 does not apply database quoting to Unicode strings
git-svn-id: http://code.djangoproject.com/svn/django/trunk@4244 bcc190cf-cafb-0310-a4f2-bffc1f526a37
|
2006-12-27 05:14:02 +00:00 |
Adrian Holovaty
|
b5cd7d469d
|
newforms: Added max_length and min_length optional arguments to RegexField, EmailField and URLField. Note that the argument order for those three fields has changed
git-svn-id: http://code.djangoproject.com/svn/django/trunk@4241 bcc190cf-cafb-0310-a4f2-bffc1f526a37
|
2006-12-26 23:46:10 +00:00 |
Adrian Holovaty
|
d0fcef9db0
|
newforms: A label can now be the empty string, in which case a label won't be displayed
git-svn-id: http://code.djangoproject.com/svn/django/trunk@4240 bcc190cf-cafb-0310-a4f2-bffc1f526a37
|
2006-12-26 23:33:20 +00:00 |
Adrian Holovaty
|
30c2bffe17
|
newforms: Changed Form.as_table() to display errors in same <td> as the field
git-svn-id: http://code.djangoproject.com/svn/django/trunk@4239 bcc190cf-cafb-0310-a4f2-bffc1f526a37
|
2006-12-26 23:16:16 +00:00 |
Adrian Holovaty
|
247fdc19ad
|
newforms: Implemented RadioFieldRenderer.__getitem__(), which allows for index lookup on radio fields
git-svn-id: http://code.djangoproject.com/svn/django/trunk@4238 bcc190cf-cafb-0310-a4f2-bffc1f526a37
|
2006-12-26 22:56:53 +00:00 |
Jacob Kaplan-Moss
|
a5d3e0c3ef
|
Fixed #3187 -- Django will now look for the root URLconf as an attribute of the request object, if available. This lets middleware override the urlconf as needed. Thanks, Fredrik Lundh.
git-svn-id: http://code.djangoproject.com/svn/django/trunk@4237 bcc190cf-cafb-0310-a4f2-bffc1f526a37
|
2006-12-26 14:40:33 +00:00 |
Adrian Holovaty
|
86870e7587
|
newforms: Added django.newforms.extras.widgets, with SelectDateWidget implementation, plus some unit tests
git-svn-id: http://code.djangoproject.com/svn/django/trunk@4236 bcc190cf-cafb-0310-a4f2-bffc1f526a37
|
2006-12-24 20:22:38 +00:00 |
Adrian Holovaty
|
3d9b12b2d8
|
newforms: Removed Widget.requires_data_list parameter, which was made redundant by Widget.value_from_datadict()
git-svn-id: http://code.djangoproject.com/svn/django/trunk@4235 bcc190cf-cafb-0310-a4f2-bffc1f526a37
|
2006-12-24 03:36:49 +00:00 |
Adrian Holovaty
|
f6fd5827aa
|
Changed django.forms to remove duplicate code and import from django.oldforms instead
git-svn-id: http://code.djangoproject.com/svn/django/trunk@4234 bcc190cf-cafb-0310-a4f2-bffc1f526a37
|
2006-12-22 01:44:34 +00:00 |
Russell Keith-Magee
|
64a2718f6c
|
Refactored workhorse methods on m2m descriptors. Modified _add to check for the type of incoming objects (to match existing _remove implementation), and modified _remove to use a single query rather than 1 per object (to match existing _add implementation).
git-svn-id: http://code.djangoproject.com/svn/django/trunk@4233 bcc190cf-cafb-0310-a4f2-bffc1f526a37
|
2006-12-20 14:06:27 +00:00 |
Russell Keith-Magee
|
e859f108f1
|
Fixed problem with assiging an empty list to m2m related descriptors, introduced in [4231].
git-svn-id: http://code.djangoproject.com/svn/django/trunk@4232 bcc190cf-cafb-0310-a4f2-bffc1f526a37
|
2006-12-20 13:57:17 +00:00 |
Russell Keith-Magee
|
2d6095ea5e
|
Fixed #3142 -- Optimized the assignment of m2m and m2o relation sets. Thanks, (and well spotted!) mitakummaa@gmail.com.
git-svn-id: http://code.djangoproject.com/svn/django/trunk@4231 bcc190cf-cafb-0310-a4f2-bffc1f526a37
|
2006-12-20 09:59:03 +00:00 |
Jacob Kaplan-Moss
|
069a8858ba
|
Fixed #3128: Added explicit object-tools block so custom admin templates can override it where needed. Thanks, Gary Wilson.
git-svn-id: http://code.djangoproject.com/svn/django/trunk@4230 bcc190cf-cafb-0310-a4f2-bffc1f526a37
|
2006-12-20 05:00:36 +00:00 |
Adrian Holovaty
|
3f4d6a2dda
|
Changed dateformat 'M' to use MONTHS_3 instead of MONTHS, for better support of translations
git-svn-id: http://code.djangoproject.com/svn/django/trunk@4226 bcc190cf-cafb-0310-a4f2-bffc1f526a37
|
2006-12-18 16:16:12 +00:00 |
Adrian Holovaty
|
d9ce900e13
|
Fixed #3157 -- Made error message XHTML-friendly in CSRF middleware. Thanks, mir@noris.de
git-svn-id: http://code.djangoproject.com/svn/django/trunk@4225 bcc190cf-cafb-0310-a4f2-bffc1f526a37
|
2006-12-18 15:37:52 +00:00 |
Adrian Holovaty
|
cd394a246a
|
Fixed #3153 -- newforms 'label' argument now can contain wacky characters. Thanks, dswistowski
git-svn-id: http://code.djangoproject.com/svn/django/trunk@4223 bcc190cf-cafb-0310-a4f2-bffc1f526a37
|
2006-12-17 19:04:03 +00:00 |
Adrian Holovaty
|
a0ef6f6915
|
newforms: Added optional 'form' parameter to form_for_model
git-svn-id: http://code.djangoproject.com/svn/django/trunk@4220 bcc190cf-cafb-0310-a4f2-bffc1f526a37
|
2006-12-17 05:12:53 +00:00 |
Adrian Holovaty
|
e76e2aaffb
|
newforms: Added BaseForm to django.newforms namespace
git-svn-id: http://code.djangoproject.com/svn/django/trunk@4219 bcc190cf-cafb-0310-a4f2-bffc1f526a37
|
2006-12-17 05:11:48 +00:00 |
Adrian Holovaty
|
546297be27
|
newforms: Implemented min_value and max_value options for IntegerField
git-svn-id: http://code.djangoproject.com/svn/django/trunk@4218 bcc190cf-cafb-0310-a4f2-bffc1f526a37
|
2006-12-15 23:18:47 +00:00 |
Adrian Holovaty
|
26489d4e2a
|
newforms: Fixed unexpected behavior with CharField(required=False, min_length=X). Thanks for reporting, Benjamin Slavin
git-svn-id: http://code.djangoproject.com/svn/django/trunk@4217 bcc190cf-cafb-0310-a4f2-bffc1f526a37
|
2006-12-15 23:07:41 +00:00 |
Adrian Holovaty
|
4f5170bffe
|
newforms: The Form classes created by form_for_model() now have a create() method, which creates a model instance from the clean_data
git-svn-id: http://code.djangoproject.com/svn/django/trunk@4216 bcc190cf-cafb-0310-a4f2-bffc1f526a37
|
2006-12-15 22:33:24 +00:00 |
Adrian Holovaty
|
a23e67bf4b
|
Improved error message in postgresql backend
git-svn-id: http://code.djangoproject.com/svn/django/trunk@4215 bcc190cf-cafb-0310-a4f2-bffc1f526a37
|
2006-12-15 22:32:16 +00:00 |
Adrian Holovaty
|
5cb093b033
|
newforms: Changed form_for_model() to ignore a field if its formfield() returns None, and changed AutoField.formfield() to return None
git-svn-id: http://code.djangoproject.com/svn/django/trunk@4214 bcc190cf-cafb-0310-a4f2-bffc1f526a37
|
2006-12-15 21:22:13 +00:00 |
Jacob Kaplan-Moss
|
5efb9272e2
|
Vastly improved performance of django.utils.text.wrap. Thanks to GvR for the impetus and Micael Radziej for the patch.
git-svn-id: http://code.djangoproject.com/svn/django/trunk@4213 bcc190cf-cafb-0310-a4f2-bffc1f526a37
|
2006-12-15 19:05:57 +00:00 |
Adrian Holovaty
|
35f7e33b4a
|
Implemented formfield() for a bunch of database Field classes
git-svn-id: http://code.djangoproject.com/svn/django/trunk@4211 bcc190cf-cafb-0310-a4f2-bffc1f526a37
|
2006-12-15 18:32:42 +00:00 |
Adrian Holovaty
|
1c4ed6126b
|
Moved newforms import out of Field.formfield()
git-svn-id: http://code.djangoproject.com/svn/django/trunk@4210 bcc190cf-cafb-0310-a4f2-bffc1f526a37
|
2006-12-15 18:15:55 +00:00 |
Adrian Holovaty
|
706fcec164
|
Copied django.forms to django.oldforms and changed all code to reference django.oldforms instead of django.forms. Updated docs/forms.txt to add 'Forwards-compatibility' section that says you should not be using django.oldforms for any new projects.
git-svn-id: http://code.djangoproject.com/svn/django/trunk@4208 bcc190cf-cafb-0310-a4f2-bffc1f526a37
|
2006-12-15 18:00:50 +00:00 |
Adrian Holovaty
|
06a5370e6a
|
Fixed #1977 -- Changed postgresql.org URL in global_settings.py and project_template/settings.py. Thanks, regexbot@gmail.com
git-svn-id: http://code.djangoproject.com/svn/django/trunk@4207 bcc190cf-cafb-0310-a4f2-bffc1f526a37
|
2006-12-15 15:56:42 +00:00 |
Adrian Holovaty
|
6001974e45
|
newforms: Added initial implementation of form_for_model and form_for_fields
git-svn-id: http://code.djangoproject.com/svn/django/trunk@4205 bcc190cf-cafb-0310-a4f2-bffc1f526a37
|
2006-12-15 05:46:11 +00:00 |
Adrian Holovaty
|
0a7d8b18ff
|
newforms: Split the Form class into BaseForm and Form. The former has all the Form logic; the latter just implements the metaclass that allows for declarative form definition. This change makes it easier to allow other (i.e., non-declarative) designation of a form's fields in creating a form class
git-svn-id: http://code.djangoproject.com/svn/django/trunk@4204 bcc190cf-cafb-0310-a4f2-bffc1f526a37
|
2006-12-15 05:35:19 +00:00 |
Adrian Holovaty
|
fc11b97e97
|
Fixed #3143 -- Added TimeField to newforms. Thanks, jkocherhans
git-svn-id: http://code.djangoproject.com/svn/django/trunk@4202 bcc190cf-cafb-0310-a4f2-bffc1f526a37
|
2006-12-14 20:35:32 +00:00 |
Adrian Holovaty
|
d8a21981b7
|
Fixed #3139 -- newforms BoundField no longer returns empty errors when using a prefix. Thanks, jkocherhans
git-svn-id: http://code.djangoproject.com/svn/django/trunk@4199 bcc190cf-cafb-0310-a4f2-bffc1f526a37
|
2006-12-13 23:03:19 +00:00 |
Adrian Holovaty
|
6733c39804
|
Fixed #3112 -- Changed newforms Form.as_table() to use <th> instead of <td> for first column
git-svn-id: http://code.djangoproject.com/svn/django/trunk@4197 bcc190cf-cafb-0310-a4f2-bffc1f526a37
|
2006-12-13 06:44:57 +00:00 |
Adrian Holovaty
|
4add4e4272
|
Fixed #3114 -- newforms MultipleChoiceField now handles MultiValueDicts properly. Thanks for the patch, Honza Král
git-svn-id: http://code.djangoproject.com/svn/django/trunk@4196 bcc190cf-cafb-0310-a4f2-bffc1f526a37
|
2006-12-13 06:26:04 +00:00 |
Adrian Holovaty
|
faaec9c28f
|
Fixed #3132 -- Added prefix support for newforms. Thanks, jkocherhans
git-svn-id: http://code.djangoproject.com/svn/django/trunk@4194 bcc190cf-cafb-0310-a4f2-bffc1f526a37
|
2006-12-12 05:55:39 +00:00 |
Adrian Holovaty
|
05588b3797
|
newforms: Changed Form to use auto_id by default
git-svn-id: http://code.djangoproject.com/svn/django/trunk@4192 bcc190cf-cafb-0310-a4f2-bffc1f526a37
|
2006-12-11 02:38:18 +00:00 |
Adrian Holovaty
|
d93021eb10
|
Fixed #3102 -- newforms: Fields can now designate their human-friendly labels. BoundField.verbose_name is now BoundField.label
git-svn-id: http://code.djangoproject.com/svn/django/trunk@4188 bcc190cf-cafb-0310-a4f2-bffc1f526a37
|
2006-12-08 20:06:12 +00:00 |
Adrian Holovaty
|
f10a910577
|
newforms: Added Field.widget_attrs() hook, which lets a Field designate HTML attributes to use in its widget. Implemented CharField.widget_attrs(), which sets the HTML maxlength attribute for <input type='text'> and <input type='password'>. Thanks for the idea, Gary Doades
git-svn-id: http://code.djangoproject.com/svn/django/trunk@4187 bcc190cf-cafb-0310-a4f2-bffc1f526a37
|
2006-12-08 18:54:53 +00:00 |
Adrian Holovaty
|
4e72dc86ff
|
Fixed small Unicode error in newforms. Thanks, Honza Král. Refs #3114
git-svn-id: http://code.djangoproject.com/svn/django/trunk@4185 bcc190cf-cafb-0310-a4f2-bffc1f526a37
|
2006-12-08 05:54:14 +00:00 |
Adrian Holovaty
|
5f36d9d562
|
Added django.contrib.contenttypes.management.create_all_contenttypes() function for convenience
git-svn-id: http://code.djangoproject.com/svn/django/trunk@4183 bcc190cf-cafb-0310-a4f2-bffc1f526a37
|
2006-12-07 16:19:37 +00:00 |
Adrian Holovaty
|
c50d333c23
|
newforms: Changed Form._html_output() to use dictionary-style format strings for more flexibility. Thanks, Waylan Limberg
git-svn-id: http://code.djangoproject.com/svn/django/trunk@4182 bcc190cf-cafb-0310-a4f2-bffc1f526a37
|
2006-12-07 15:49:05 +00:00 |
Adrian Holovaty
|
545ebf4395
|
Improved [4180] to add HTML escaping on the primary-key value in the error message
git-svn-id: http://code.djangoproject.com/svn/django/trunk@4181 bcc190cf-cafb-0310-a4f2-bffc1f526a37
|
2006-12-07 15:14:35 +00:00 |
Adrian Holovaty
|
201704be3d
|
Added improved error message in admin views/main.py when loading ChangeManipulator. Also took the opportunity to convert all Http404 exceptions to use proper exception raising syntax
git-svn-id: http://code.djangoproject.com/svn/django/trunk@4180 bcc190cf-cafb-0310-a4f2-bffc1f526a37
|
2006-12-07 15:09:24 +00:00 |
Adrian Holovaty
|
b4a67359a3
|
newforms: Abstracted common code in Form as_table(), as_ul() and as_p() into Form._html_output(). It's slightly obscure but saves on a lot of redundancy and code bloat.
git-svn-id: http://code.djangoproject.com/svn/django/trunk@4179 bcc190cf-cafb-0310-a4f2-bffc1f526a37
|
2006-12-07 06:59:07 +00:00 |
Adrian Holovaty
|
7e269bd390
|
Fixed #3107 -- newforms: Added Form.as_p()
git-svn-id: http://code.djangoproject.com/svn/django/trunk@4178 bcc190cf-cafb-0310-a4f2-bffc1f526a37
|
2006-12-07 06:34:37 +00:00 |
Adrian Holovaty
|
44add112e5
|
newforms: Form.as_ul() no longer puts hidden fields between <li>s. Similar to [4175], which was the same thing for Form.as_table(). Refs #3101
git-svn-id: http://code.djangoproject.com/svn/django/trunk@4177 bcc190cf-cafb-0310-a4f2-bffc1f526a37
|
2006-12-07 06:17:06 +00:00 |