summaryrefslogtreecommitdiff
path: root/django/forms/models.py
AgeCommit message (Collapse)Author
2016-04-21Fixed #22383 -- Added support for HTML5 required attribute on required form ↵Jon Dufresne
fields.
2016-04-13Refs #16508 -- Renamed the current "virtual" fields to "private".Michal Petrucha
The only reason why GenericForeignKey and GenericRelation are stored separately inside _meta is that they need to be cloned for every model subclass, but that's not true for any other virtual field. Actually, it's only true for GenericRelation.
2016-04-08Fixed E128 flake8 warnings in django/.Tim Graham
2016-04-04Fixed W503 flake8 warnings.Tim Graham
2016-03-26Fixed #25987 -- Made inline formset validation respect unique_together with ↵Simon Charette
an unsaved parent object. Thanks Anton Kuzmichev for the report and Tim for the review.
2016-03-25Removed unnecessary type creation in modelforset_factory.Simon Charette
2016-03-19Refs #24227 -- Replaced M2M isinstance checks by field.many_to_manyClaude Paroz
Thanks Markus Holtermann, Collin Anderson and Tim Graham for the reviews.
2016-02-26Fixed #24974 -- Fixed inheritance of formfield_callback for ↵Yoong Kang Lim
modelform_factory forms.
2016-02-21Fixed #26238 -- Raised explicit error for non-editable field in ModelFormClaude Paroz
Thanks Luke Crouch for the report and Simon Charette for the review.
2016-02-19Fixed #25349 -- Allowed a ModelForm to unset a fields with blank=True, ↵haxoza
required=False.
2015-11-09Fixed #25683 -- Allowed ModelChoiceField(queryset=...) to accept Managers.Marti Raudsepp
This fixes a regression from refs #25496.
2015-10-05Fixed #25496 -- Made ModelChoiceField respect prefetch_related().Tim Graham
2015-09-21Fixed #25431 -- Readded inline foreign keys to modelformset instancesClaude Paroz
Too much field exclusions in form's construct_instance() in _post_clean() could lead to some unexpected missing ForeignKey values. Fixes a regression from 45e049937. Refs #13776.
2015-09-12Fixed #23395 -- Limited line lengths to 119 characters.Dražen Odobašić
2015-09-07Fixed #24706 -- Made ModelForm._post_clean() handle a ValidationError raised ↵Keryn Knight
when constructing the model instance. Thanks Loïc Bistuer for review and advice.
2015-08-07Removed forms.models.save_instance() function.Tim Graham
As of b11564fd36587b1077bf7d77b62b7879cc08c382 it's no longer used elsewhere in Django and it isn't a documented public API. Thanks Simon Charette for review.
2015-08-07Fixed #25241 -- Corrected ModelForm.save() error message when saving invalid ↵Tim Graham
form with UUIDField pk.
2015-07-14Fixed #25097 -- Added BaseModelFormSet.delete_existing() hook.Simon Litchfield
2015-06-26Fixed #24958 -- Fixed inline forms using UUID-PK parents with auto-PK children.Jason Hoos
2015-05-13Removed unnecessary arguments in .get method callsPiotr Jakimiak
2015-05-08Fixed #24771 -- Simplified ModelForm._post_clean()Peter Schmidt
This code added in 45e049937d2564d11035827ca9a9221b86215e45 is no longer necessary to pass the model_formsets_regress tests as of 5e2c4a4bd1f86962842783e0b42ada7b9c14c247.
2015-05-02Fixed #24693 -- Added label and label_lower property to Model._metaLuis Del Giudice
2015-03-25Renamed Field.rel attribute to remote_fieldAnssi Kääriäinen
Field.rel is now deprecated. Rel objects have now also remote_field attribute. This means that self == self.remote_field.remote_field. In addition, made the Rel objects a bit more like Field objects. Still, marked ManyToManyFields as null=True.
2015-02-24Fixed #24395 -- Ensured inline ModelsForms have an updated related instance.Stanislas Guerra
2015-02-23Fixed #24377 -- Fixed model inline formsets with primary key's that have ↵Tim Graham
defaults.
2015-02-13Fixed #24295 -- Allowed ModelForm meta to specify form field classes.Loic Bistuer
Thanks Carl Meyer and Markus Holtermann for the reviews.
2015-02-06Sorted imports with isort; refs #23860.Tim Graham
2015-01-20Fixed typos in code comments.Adam Taylor
2015-01-17Removed unused imports.Tim Graham
2015-01-17Removed Multiple/ModelChoiceField cache_choices option; refs #22838.Tim Graham
2015-01-13Fixed DoS possibility in ModelMultipleChoiceField.Tim Graham
This is a security fix. Disclosure following shortly. Thanks Keryn Knight for the report and initial patch.
2015-01-12Fixed #24138 -- Added modelform_factory to __all__.Josh Schneier
2015-01-06Fixed #12663 -- Formalized the Model._meta API for retrieving fields.Daniel Pyrathon
Thanks to Russell Keith-Magee for mentoring this Google Summer of Code 2014 project and everyone else who helped with the patch!
2014-12-23Fixed #21414 -- Removed RelatedObject and deprecated Field.related.Anssi Kääriäinen
2014-12-08Fixed #23968 -- Replaced list comprehension with generators and dict ↵Jon Dufresne
comprehension
2014-11-21Fixed typo in forms/models.py comment.Simon Charette
2014-11-12Fixed #23795 -- Fixed a regression in custom form fieldsBaptiste Mispelon
Custom form fields having a `queryset` attribute but no `limit_choices_to` could no longer be used in ModelForms. Refs #2445. Thanks to artscoop for the report.
2014-10-10Fixed #23623 -- Reduced memory consumption when generating ModelChoiceField ↵Thomas Chaumeny
choices
2014-09-08Fixed #23451 -- Fixed typo in inlineformset_factory() error message.Petras Zdanavičius
2014-09-05Limited lines to 119 characters in django/Tim Graham
refs #23395.
2014-08-15Fixed #23162 -- Renamed forms.Field._has_changed() to has_changed().Gabriel Muñumel
2014-07-31Fixed #22808 -- Made ModelMultipleChoiceField validation more robust to ↵Niclas Olofsson
invalid data types.. Thanks Mattias Lindvall for the report and inital patch.
2014-07-09Fixed #13794 -- Fixed to_field usage in BaseInlineFormSet.Tim Graham
Thanks sebastien at clarisys.fr for the report and gautier for the patch.
2014-07-05Fixed various minor doc typos / references.Daniel Hahler
2014-06-20Fixed #22838 -- Deprecated ModelChoiceField.cache_choices.Marc Tamlyn
Undocumented, untested and probably not even useful feature.
2014-06-04Fixed #13776 -- Fixed ModelForm.is_valid() exception with non-nullable FK ↵Anubhav Joshi
and blank=True. Thanks peterbe for the report.
2014-05-15Fixed #17642 -- Added min_num support to modelformsets, inlines, and the admin.Anders Steinlein
Thanks Stephen Burrows for work on the patch as well. Forwardport of 2914f66983a92fcae55673c517dd8d01e8c238c4 from stable/1.7.x
2014-03-30Corrected many style guide violations that the newest version of flake8 catchesAlex Gaynor
2014-03-22Made ModelForms raise ImproperlyConfigured if the list of fields is not ↵Tim Graham
specified. Also applies to modelform(set)_factory and generic model views. refs #19733.
2014-03-21Removed hard-coded help_text for ManyToManyFields that use a SelectMultiple ↵Tim Graham
widget Per deprecation timeline; refs #9321.