Changes between Version 142 and Version 143 of BackwardsIncompatibleChanges


Ignore:
Timestamp:
12/16/2007 12:29:07 AM (7 years ago)
Author:
Manoj Govindan <egmanoj@…>
Comment:

I hope this will save time for developers whose tests fail like mine did.

Legend:

Unmodified
Added
Removed
Modified
  • BackwardsIncompatibleChanges

    v142 v143  
    1616
    1717Changes made after Django [source:/django/tags/releases/0.96 0.96]:
    18 
     18 * [6915] December 12, 2007: [http://code.djangoproject.com/wiki/BackwardsIncompatibleChanges#Changedmodelformsinitsignaturetomatchforms Changed ModelForm's init signature to match Form's]
    1919 * [4885] March 31, 2007: [http://code.djangoproject.com/wiki/BackwardsIncompatibleChanges#Changedspacelesstemplatetagtoremoveallspaces Changed 'spaceless' template tag to remove all spaces]
    2020 * [4954] April 8, 2007: [http://code.djangoproject.com/wiki/BackwardsIncompatibleChanges#Renamedlocalflavor.usatolocalflavor.us Renamed `localflavour.usa` to `localflavor.us`]
     
    8686In [4767], we added a {{{mysql_old}}} backend, which is identical to the {{{mysql}}} backend prior to the change in [4724]. You can use this backend if upgrading the {{{MySQLdb}}} module is not immediately possible. However, the {{{mysql_old}}} backend is deprecated, and  we will not continue developing it.
    8787
     88== Changed ModelForm's init signature to match Form's ==
     89
     90As of [6915] the {{{__init__}}} signature for {{{ModelForm}}} matches that of {{{newforms.Form}}}. {{{ModelForm}}} objects can now be instantiated by supplying the relevant form data without requiring a model instance to be passed in.
     91
     92Before the change {{{ModelForm}}} objects used in views were instantiated as follows:
     93{{{
     94   form = MyModelForm(instance, request.POST.copy())
     95}}}
     96
     97This now becomes
     98{{{
     99   form = MyModelForm(request.POST.copy())
     100}}}
     101
    88102== Changed 'spaceless' template tag to remove all spaces ==
    89103
Back to Top