ArchAng31

Mitglied seit
ArchAng31

Neueste Aktivitäten bei der Dokumentation

Gesamte Aktivität ansehen
Seite Datum Kommentar

Django Tutorial Part 9: Working with forms


Django Tutorial Part 9: Working with forms


Changed variable back to due_back. This is required since the variable in BookInstance is called due_back. Added a sentence to explain reasoning and added additional change to views.py to make the transition to RenewBookModelForm work

Django Tutorial Part 9: Working with forms


Django Tutorial Part 9: Working with forms


You could not simply change RenewBookForm to RenewBookModel form because of a mismatch between renewal_date and due_back in the view POST else clause (book_renewal_form = RenewBookModelForm(initial={'renewal_date': proposed_renewal_date})

Django Tutorial Part 9: Working with forms