December 2018
Beginner to intermediate
404 pages
10h 14m
English
As seen in the previous section, adding new fields to an existing Model is quite straightforward. Sometimes, we want to modify an existing field. This is also simple to do.
When extending a Model, existing fields can be modified incrementally. This means that we just need to define the field attributes to change or add.
We will make two simple changes to the Book fields that were originally created in the library_app module:
We should edit the library_member/models/library_book.py file, and add ...
Read now
Unlock full access