summaryrefslogtreecommitdiff
path: root/django/forms
AgeCommit message (Collapse)Author
2012-10-03Fixed #14567 -- Made ModelMultipleChoiceField return EmptyQuerySet as empty ↵Stephen Burrows
value
2012-09-26Fixed #17899 -- Rewrote [Ee]-mail to [Ee]mailAdrien Lemaire
2012-09-23Fixed #18982 - Caught TypeError in DateField.cleanAymeric Augustin
Thanks gwahl at fusionbox com.
2012-09-10Document and test 'type' usage in Widget attrsClaude Paroz
Refs #16630.
2012-09-07Fixed #17888 -- no longer silence exceptions inside of check_test. Thanks to ↵Alex Gaynor
brutasse for the patch.
2012-09-06Made use of property decorator in formsets.pyClaude Paroz
2012-08-30Fixed #18751 -- Cleaned up BaseFormSet._should_delete_formClaude Paroz
We can do that now that cleaned_data is guaranteed to be present. Related to [121fd109]. Thanks Simon Charette for his work on the ticket.
2012-08-23[py3] Removed duplicate imports.Aymeric Augustin
Fixed #18837. Refs #18791.
2012-08-18Fixed #18791: [py3] Double import of six in django.forms.widgetsAlexey Boriskin
2012-08-14[py3] Removed a remaining use of __metaclass__.Aymeric Augustin
2012-08-13[py3] Avoided comparison with None value in formsetsClaude Paroz
2012-08-12[py3] Refactored __unicode__ to __str__.Aymeric Augustin
* Renamed the __unicode__ methods * Applied the python_2_unicode_compatible decorator * Removed the StrAndUnicode mix-in that is superseded by python_2_unicode_compatible * Kept the __unicode__ methods in classes that specifically test it under Python 2
2012-08-08[py3] Fixed 'iterable but non string' detectionClaude Paroz
In Python 3, the str type has an __iter__ attribute. Therefore, the presence of an __iter__ attribute is not sufficient to distinguish 'standard' iterables (list, tuple) from strings.
2012-08-08[py3] Replaced __nonzero__ by __bool__Claude Paroz
Of course, __nonzero__ alias has been kept for Python 2 compatibility.
2012-08-07[py3] Ported django.utils.encoding.Aymeric Augustin
* Renamed smart_unicode to smart_text (but kept the old name under Python 2 for backwards compatibility). * Renamed smart_str to smart_bytes. * Re-introduced smart_str as an alias for smart_text under Python 3 and smart_bytes under Python 2 (which is backwards compatible). Thus smart_str always returns a str objects. * Used the new smart_str in a few places where both Python 2 and 3 want a str.
2012-08-07[py3] Fixed access to dict keys/values/items.Aymeric Augustin
2012-08-06Fixed #15754 -- avoid recursively computing the tree of media widgets more ↵Alex Gaynor
times than is necessary for a wiget
2012-08-04Fixed #5524 -- Do not remove cleaned_data when a form fails validationClaude Paroz
cleaned_data is no longer deleted when form validation fails but only contains the data that did validate. Thanks to the various contributors to this patch (see ticket).
2012-08-03Replaced some byte strings by str() callsClaude Paroz
This is a useful trick when Python 2 awaits byte strings and Python 3 Unicode (regular) strings.
2012-07-30Fixed second security issue in image uploading. Disclosure and release ↵Florian Apolloner
forthcoming.
2012-07-25it's -> itsPiet Delport
2012-07-22[py3] Added Python 3 compatibility for xrange.Aymeric Augustin
2012-07-22[py3] Updated urllib/urllib2/urlparse imports.Aymeric Augustin
Lots of functions were moved. Use explicit imports in all cases to keey it easy to identify where the functions come from.
2012-07-22[py3] Replaced unicode/str by six.text_type/bytes.Aymeric Augustin
2012-07-22[py3] Replaced basestring by six.string_types.Aymeric Augustin
2012-07-22[py3] Used six.with_metaclass wherever necessary.Aymeric Augustin
2012-07-06Fixed #18572 - Python26 string format incompatibilityLuke Plant
Thanks to anonymous/AeroNotix for the report
2012-07-03Changed a lot of internal code to use 'format_html' where appropriate/possibleLuke Plant
2012-06-07Fixed #18269 -- Applied unicode_literals for Python 3 compatibility.Claude Paroz
Thanks Vinay Sajip for the support of his django3 branch and Jannis Leidel for the review.
2012-05-31Fixed #18409 -- Made RegexField work with unicode characters.Julien Phalip
2012-05-19Marked bytestrings with b prefix. Refs #18269Claude Paroz
This is a preparation for unicode literals general usage in Django (Python 3 compatibility).
2012-05-16Hidden __pycache__ dirs for FilePathField. Refs #17393.Claude Paroz
This will be tested as soon as tests will run under Python 3. Patch taken from Vinay Sajip's Python 3 branch.
2012-05-05Replaced cStringIO.StringIO by io.BytesIO.Claude Paroz
Also replaced StringIO.StringIO by BytesIO in some other appropriate places. StringIO is not available in Python 3.
2012-04-29Fixed #18013 -- Use the new 'as' syntax for exceptions.Claude Paroz
Thanks Clueless for the initial patch. Note that unittest has been purposely left out (external package only used by Python 2.6).
2012-04-29Fixed #17976 -- Made forms.BooleanField pickleable.Aymeric Augustin
This was a regression in Django 1.4. Thanks bronger for the report and claudep for the patch.
2012-04-22Fixed #5893 -- Added a flag to FilePathField to allow listing folders, in ↵Alex Gaynor
addition to regular files. Thank you to Brian Rosner, for encouraging me to first contribute to Django 4 years ago. git-svn-id: http://code.djangoproject.com/svn/django/trunk@17925 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2012-04-05Removed pre-2.6 compatibility code in date-based form fields. Refs #9459.Claude Paroz
git-svn-id: http://code.djangoproject.com/svn/django/trunk@17870 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2012-03-31Removed deprecated URLField.verify_exists.Aymeric Augustin
The deprecation schedule was slightly accelerated because of possible security ramifications. git-svn-id: http://code.djangoproject.com/svn/django/trunk@17847 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2012-03-29Fixed #11150 -- Removed dependency on cStringIO in ImageField validation. ↵Claude Paroz
Thanks vvd for the report. git-svn-id: http://code.djangoproject.com/svn/django/trunk@17825 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2012-02-05Made a minor tweak to a doctoring in `django/forms.forms.py` that was missed ↵Julien Phalip
in r17452. Thanks to Claude Paroz for the tip. git-svn-id: http://code.djangoproject.com/svn/django/trunk@17453 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2012-02-05Fixed #17493 -- Made `Widget.id_for_label()` consistently be an instance method.Julien Phalip
git-svn-id: http://code.djangoproject.com/svn/django/trunk@17452 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2012-02-04Fixed #17542 -- Gracefully handle errors when checking if the values of a ↵Jannis Leidel
SelectDateWidget has changed if it's not required. Thanks, pigletto. git-svn-id: http://code.djangoproject.com/svn/django/trunk@17436 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2012-02-04Fixed #17594 -- Stopped ModelFormset.save from running a SELECT query by ↵Jannis Leidel
relying on the fact that the initial form is already set. Thanks, tswicegood. git-svn-id: http://code.djangoproject.com/svn/django/trunk@17434 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2012-02-04Fixed #14184 -- Enabled running the validators in MultiValueFields. Thanks, ↵Jannis Leidel
paulcollins. git-svn-id: http://code.djangoproject.com/svn/django/trunk@17430 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2012-01-19Clean up the form's code a little bit, to make it more consistantly go ↵Alex Gaynor
through one code path. Patch from Travis Swicegood. git-svn-id: http://code.djangoproject.com/svn/django/trunk@17381 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2012-01-15Added support for specifying initial values to model formsets and inline ↵Ramiro Morales
formsets. This make them consistent with the similar capability of regular formsets. Thanks to simon29 form the report and to Claude Paroz for the patch. Fixes #14574. git-svn-id: http://code.djangoproject.com/svn/django/trunk@17373 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2011-12-07Changed BoundField.subwidgets() to return SubWidget objects instead of ↵Adrian Holovaty
rendered strings. This means we can access individual radio buttons' properties in the template (see new docs) git-svn-id: http://code.djangoproject.com/svn/django/trunk@17175 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2011-12-07Made BoundFields iterable, so that you can iterate over individual radio ↵Adrian Holovaty
buttons of a RadioSelect in a template git-svn-id: http://code.djangoproject.com/svn/django/trunk@17173 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2011-11-21Fixed #17114 -- Handled integer values 0 and 1 for checkboxes like other ↵Aymeric Augustin
integer values, not like False and True. git-svn-id: http://code.djangoproject.com/svn/django/trunk@17132 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2011-11-18Added support for time zones. Thanks Luke Plant for the review. Fixed #2626.Aymeric Augustin
For more information on this project, see this thread: http://groups.google.com/group/django-developers/browse_thread/thread/cf0423bbb85b1bbf git-svn-id: http://code.djangoproject.com/svn/django/trunk@17106 bcc190cf-cafb-0310-a4f2-bffc1f526a37