Ticket #16513: modelforms-example-16513.diff

File modelforms-example-16513.diff, 505 bytes (added by teraom, 4 years ago)
  • docs/topics/forms/modelforms.txt

     
    184184equivalent to this (the only difference being the ``save()`` method, which
    185185we'll discuss in a moment.)::
    186186
     187    from django import forms
     188
    187189    class AuthorForm(forms.Form):
    188190        name = forms.CharField(max_length=100)
    189191        title = forms.CharField(max_length=3,
Back to Top