From ef37b23050637da643b47b1ee744702d4d603f4c Mon Sep 17 00:00:00 2001 From: Gilberto Gonçalves Date: Sat, 22 Jun 2013 12:12:43 +0100 Subject: Fixed #18872 -- Added prefix to FormMixin Thanks @ibustama for the initial patch and dragonsnaker for opening the report. --- docs/ref/class-based-views/mixins-editing.txt | 4 ++++ docs/releases/1.6.txt | 3 +++ 2 files changed, 7 insertions(+) (limited to 'docs') diff --git a/docs/ref/class-based-views/mixins-editing.txt b/docs/ref/class-based-views/mixins-editing.txt index 48d363b3b2..a0160610d2 100644 --- a/docs/ref/class-based-views/mixins-editing.txt +++ b/docs/ref/class-based-views/mixins-editing.txt @@ -35,6 +35,10 @@ FormMixin The URL to redirect to when the form is successfully processed. + .. attribute:: prefix + + Sets the :attr:`~django.forms.Form.prefix` for the generated form. + .. method:: get_initial() Retrieve initial data for the form. By default, returns a copy of diff --git a/docs/releases/1.6.txt b/docs/releases/1.6.txt index 16e0b94a9d..95bfedc74e 100644 --- a/docs/releases/1.6.txt +++ b/docs/releases/1.6.txt @@ -731,6 +731,9 @@ Miscellaneous of the admin views. You should update your custom templates if they use the previous parameter name. +* Added :attr:`~django.views.generic.edit.FormMixin.prefix` to allow you to + customize the prefix on the form. + Features deprecated in 1.6 ========================== -- cgit v1.3