Changes between Version 92 and Version 93 of BackwardsIncompatibleChanges


Ignore:
Timestamp:
05/14/2007 11:05:29 AM (8 years ago)
Author:
derelm
Comment:

corrected/added python syntax highlighting to examples

Legend:

Unmodified
Added
Removed
Modified
  • BackwardsIncompatibleChanges

    v92 v93  
    9898
    9999{{{
     100#!python
    100101class Article(models.Model):
    101102    title = models.CharField(maxlength=100)
     
    106107
    107108{{{
     109#!python
    108110from datetime import datetime
    109111class Article(models.Model):
     
    138140Existing uses of `login()`, e.g.:
    139141{{{
     142#!python
    140143c = Client()
    141144c.login('/path/to/login','myuser','mypassword')
     
    143146should be modified to read:
    144147{{{
     148#!python
    145149c = Client()
    146150c.login(username='myuser', password='mypassword')
     
    171175If you have any form-specific cleaning methods in a newforms.Form subclass, they need to be renamed, as of [5231]. Change code that looks like this
    172176{{{
    173 #!/python
     177#!python
    174178class SomeForm(Form)
    175179   some_field = ...
     
    180184to this
    181185{{{
    182 #!/python
     186#!python
    183187class SomeForm(Form)
    184188   some_field = ...
Back to Top