ArchAng31

সদস্য তারিখ থেকে
ArchAng31

সাম্প্রতিক ডকুমেন্টেশন কার্যক্রম

সমস্ত কার্যকলাপ দেখুন
পৃষ্ঠা তারিখ মন্তব্য

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