Ticket #3922: 3922.patch

File 3922.patch, 704 bytes (added by Philippe Raoult, 12 years ago)

patch to newforms.txt to mention this problem

  • docs/newforms.txt

     
    19141914
    19151915Note that your callback needs to handle *all* possible model field types, not
    19161916just the ones that you want to behave differently to the default. That's why
    1917 this example has an ``else`` clause that implements the default behavior.
     1917this example has an ``else`` clause that implements the default behavior. Also
     1918be aware that the field passed in argument is the model's field, and that
     1919modifying it will impact you model!
    19181920
    19191921Finding the model associated with a form
    19201922~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
Back to Top