the modification to models py is just two linesmodels py from django db import models from django contrib auth models import user class topic(models model)""" topic the user is learning about""text models charfield(max_length= date_added models datetimefield(auto_now_add=trueowner models foreignkey(userdef __str__(self)"""return string representation of the model ""return self text class entry(models model)--snip-we first import the user model from django contrib auth we then add an owner field to topicwhich establishes foreign key relationship to the user model identifying existing users when we migrate the databasedjango will modify the database so it can store connection between each topic and user to make the migrationdjango needs to know which user to associate with each existing topic the simplest approach is to give all existing topics to one user--for examplethe superuser firstwe need to know the id of that user let' look at the ids of all users created so far start django shell session and issue the following commands(venv)learning_logpython manage py shell from django contrib auth models import user user objects all([ for user in user objects all()print(user usernameuser idll_admin eric willie at we import the user model into the shell session we then look at all the users that have been created so far the output shows three usersll_adminericand willie at we loop through the list of users and print each user' username and id when django asks which user to associate the existing topics withwe'll use one of these id values user accounts