1
0
mirror of https://github.com/django/django.git synced 2025-03-26 09:10:50 +00:00

322 Commits

Author SHA1 Message Date
Claude Paroz
43b574007e Fixed -- Required passing optional form field args as keyword args. 2017-06-03 10:49:01 -04:00
Claude Paroz
54caca2d34 Refs -- Fixed documentation of ChoiceField choices requirement
Thanks Tim Graham for noticing the issue.
2017-06-03 16:17:03 +02:00
Jon Dufresne
29a518006f Fixed -- Prevented renderer warning on Widget.render() with **kwargs. 2017-06-02 09:46:43 -04:00
Jon Dufresne
2c69824e5a Refs -- Removed unnecessary lists, generators, and tuple calls. 2017-06-01 19:08:59 -04:00
Manatsawin Hanmongkolchai
a0c07d77fc Fixed -- Moved ImageField file extension validation to the form field. 2017-06-01 10:13:23 -04:00
Tim Graham
84fb50df67 Fixed a forms test after updated translations. 2017-05-31 19:29:34 -04:00
Jon Dufresne
21046e7773 Fixed -- Removed unnecessary dict.keys() calls.
iter(dict) is equivalent to iter(dict.keys()).
2017-05-27 19:08:46 -04:00
Tim Heap
5b6181f4d5 Fixed -- Added ErrorDict.get_json_data(). 2017-05-27 09:19:42 -04:00
Bruno Alla
6092ea8fa6 Refs -- Used subTest() in several tests. 2017-05-24 08:36:34 -04:00
Tim Graham
d302e2c09c Fixed -- Fixed choice ordering in form fields with grouped and non-grouped options.
Regression in b52c73008a9d67e9ddbb841872dc15cdd3d6ee01.
2017-05-03 07:21:44 -04:00
Tim Graham
f04a404917 Fixed -- Fixed formset min_num validation with initial, unchanged forms.
Regression in f5c6295797b8332134fd89e0209a18a1d1d45e0c.
2017-04-28 09:32:40 -04:00
Tim Graham
851874fe0a Removed obsolete Widget.format_output() in tests.
Obsolete since b52c73008a9d67e9ddbb841872dc15cdd3d6ee01.
2017-04-24 13:41:34 -04:00
Jon Dufresne
581879a510 Fixed -- Prevented ChoiceWidget from localizing option values. 2017-04-21 12:14:40 -04:00
Tim Graham
af1f986360 Fixed -- Restored class attribute in <ul> of widgets that use multiple_input.html.
Regression in b52c73008a9d67e9ddbb841872dc15cdd3d6ee01
2017-04-20 10:06:34 -04:00
Tim Graham
c09bf8d767 Fixed -- Restored empty BoundFields evaluating to True.
Regression in b52c73008a9d67e9ddbb841872dc15cdd3d6ee01
2017-04-17 08:32:29 -04:00
Raphael Michel
bde814142a Fixed -- Broken decimal validation 2017-04-07 12:45:08 +02:00
Stefan Wehrmeyer
1aa8e8605c Fixed -- Preserved empty QueryDicts for form's data/files args. 2017-04-01 18:43:39 -04:00
Claude Paroz
e487ffd3f0 Fixed -- Made ChoiceWidget.format_value() return a list
Thanks Tim Graham for the review.
2017-04-01 12:24:05 +02:00
heathervm
7d1e237753 Fixed -- Fixed model form default fallback for SelectMultiple. 2017-03-31 10:10:08 -04:00
Jon Dufresne
7edeeb74fe Fixed -- Removed technical terms from InlineForeignKeyField/ModelMultipleChoiceField error messages. 2017-03-20 13:12:55 -04:00
Adonys Alea Boffill
cd2ad26cc9 Fixed -- Fixed SelectDateWidget redisplay if a year isn't chosen. 2017-03-18 15:14:52 -04:00
Adonys Alea Boffill
fb48ad348a Added tests for SelectDateWidget.format_value(). 2017-03-18 14:58:31 -04:00
Tim Graham
6b4f018b2b Replaced type-specific assertions with assertEqual().
Python docs say, "it's usually not necessary to invoke these methods directly."
2017-03-17 07:51:48 -04:00
Claude Paroz
540ae68a5c Fixed -- Restored empty RadioSelect choice producing value=""
Regression in b52c73008a9d67e9ddbb841872dc15cdd3d6ee01.
Thanks Tim Graham for the review.
2017-03-14 18:23:06 +01:00
Tim Graham
75f0070a54 Fixed -- Fixed BytesWarnings in the test suite. 2017-02-17 16:04:45 -05:00
Tim Graham
500532c95d Refs -- Removed default 'utf-8' argument for str.encode()/decode(). 2017-02-09 09:03:47 -05:00
Mariusz Felisiak
0034e9af18 Fixed -- Allowed specifying different HTML attrs for SplitDateTimeWidget subwidgets.
Thanks Tim Graham and Nick Pope for review.
2017-02-07 11:33:37 -05:00
Claude Paroz
c651331b34 Converted usage of ugettext* functions to their gettext* aliases
Thanks Tim Graham for the review.
2017-02-07 09:04:04 +01:00
Tim Graham
4353640ea9 Fixed -- Fixed ClearableFileInput's "Clear" checkbox on model fields with a default. 2017-02-06 20:31:04 -05:00
Vytis Banaitis
8838d4dd49 Refs -- Replaced kwargs.pop() with keyword-only arguments. 2017-02-01 11:41:56 -05:00
Vytis Banaitis
d1bab24e01 Refs , -- Removed obsolete mentions of unicode. 2017-01-26 08:19:27 -05:00
chillaranand
d6eaf7c018 Refs -- Replaced super(ClassName, self) with super(). 2017-01-25 12:23:46 -05:00
Claude Paroz
2366100872 Removed unneeded force_text calls in the test suite 2017-01-24 18:45:54 +01:00
Jon Dufresne
5fa390ee81 Fixed -- Prevented forms attrs.html template from rendering False attrs.
Regression in b52c73008a9d67e9ddbb841872dc15cdd3d6ee01.
2017-01-23 08:49:00 -05:00
Jon Dufresne
88183117c2 Fixed -- Fixed quote location in multiple_input.html forms templates. 2017-01-23 07:44:57 -05:00
Tim Graham
d170c63351 Refs -- Removed misc references to Python 2. 2017-01-21 20:02:00 -05:00
Claude Paroz
289fc1bfa5 Refs -- Removed str_prefix usage 2017-01-20 15:43:28 +01:00
Tim Graham
7aba69145d Refs -- Removed django.test.mock Python 2 compatibility shim. 2017-01-20 08:17:20 -05:00
Claude Paroz
042b7350a0 Refs -- Removed unneeded str() calls 2017-01-20 14:13:55 +01:00
Tim Graham
4e729feaa6 Refs -- Removed django.utils._os.upath()/npath()/abspathu() usage.
These functions do nothing on Python 3.
2017-01-20 08:01:02 -05:00
Tim Graham
109b33f64c Refs -- Simplified assertRaisesRegex()'s that accounted for Python 2. 2017-01-20 08:49:47 +01:00
Simon Charette
cecc079168 Refs -- Stopped inheriting from object to define new style classes. 2017-01-19 08:39:46 +01:00
Claude Paroz
7b2f2e74ad Refs -- Removed six.<various>_types usage
Thanks Tim Graham and Simon Charette for the reviews.
2017-01-18 20:18:46 +01:00
Claude Paroz
f3c43ad1fd Refs -- Removed python_2_unicode_compatible decorator usage 2017-01-18 13:44:34 +01:00
Claude Paroz
d7b9aaa366 Refs -- Removed encoding preambles and future imports 2017-01-18 09:55:19 +01:00
Tim Graham
742d666da5 Refs -- Removed django.forms.extras per deprecation timeline. 2017-01-17 14:09:28 -05:00
Mariusz Felisiak
974d14534c Fixed -- Set MultiWidget's subwidgets input type from attrs argument.
Regression in b52c73008a9d67e9ddbb841872dc15cdd3d6ee01.
2017-01-13 06:34:33 -05:00
Mariusz Felisiak
6872ce2266 Fixed -- Reallowed Input widget's attrs argument to set the input type.
Regression in b52c73008a9d67e9ddbb841872dc15cdd3d6ee01.
2017-01-10 11:38:27 -05:00
Dmitry
12cefee5d8 Refs -- Prevented newlines in attrs.html widget rendering.
Removed the trailing newline from widget attrs.html template.
The solution may be revisited by fixing refs  but not
for Django 1.11.

Thanks Dmitry Ivanchenko for the report and Preston Timmons for advice.
2017-01-06 19:11:32 -05:00
Tim Graham
4e89082f31 Refs -- Fixed form renderer test for Python 2 non-ASCII path. 2016-12-28 15:57:55 -05:00