summaryrefslogtreecommitdiff
path: root/tests/modeltests/model_forms/models.py
AgeCommit message (Collapse)Author
2007-01-09Fixed #3232 -- newforms: Added save_instance(), which saves a given bound ↵Adrian Holovaty
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-09newforms: Changed model auto-Form generation so that create() and ↵Adrian Holovaty
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-08Fixed #3252 -- Fixed bugs in model_forms unit tests, related to recent ↵Adrian Holovaty
newforms clean_data change. Thanks for the patch, mir@noris.de git-svn-id: http://code.djangoproject.com/svn/django/trunk@4294 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2006-12-30Updated docstring in model_forms unit testAdrian Holovaty
git-svn-id: http://code.djangoproject.com/svn/django/trunk@4263 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2006-12-30newforms: Got form_for_instance() to select initial ManyToManyField values ↵Adrian Holovaty
properly git-svn-id: http://code.djangoproject.com/svn/django/trunk@4261 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2006-12-28newforms: Implemented apply_changes() method for form_for_instance FormsAdrian Holovaty
git-svn-id: http://code.djangoproject.com/svn/django/trunk@4253 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2006-12-28newforms: Implemented form_for_instance(). The resulting Form class does not ↵Adrian Holovaty
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-27newforms: Implemented formfield() for database ForeignKey class and added ↵Adrian Holovaty
unit tests git-svn-id: http://code.djangoproject.com/svn/django/trunk@4247 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2006-12-27newforms: Implemented formfield() for database ManyToManyField class and ↵Adrian Holovaty
added unit tests git-svn-id: http://code.djangoproject.com/svn/django/trunk@4246 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2006-12-17newforms: Added optional 'form' parameter to form_for_modelAdrian Holovaty
git-svn-id: http://code.djangoproject.com/svn/django/trunk@4220 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2006-12-15newforms: The Form classes created by form_for_model() now have a create() ↵Adrian Holovaty
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-15newforms: Changed form_for_model() to ignore a field if its formfield() ↵Adrian Holovaty
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-15Implemented formfield() for a bunch of database Field classesAdrian Holovaty
git-svn-id: http://code.djangoproject.com/svn/django/trunk@4211 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2006-12-15newforms: Added initial implementation of form_for_model and form_for_fieldsAdrian Holovaty
git-svn-id: http://code.djangoproject.com/svn/django/trunk@4205 bcc190cf-cafb-0310-a4f2-bffc1f526a37