the topics admin pageand you'll see the topic you just created let' create second topic so we'll have more data to work with click add againand create second topicrock climbing when you click saveyou'll be sent back to the main topics page againand you'll see both chess and rock climbing listed defining the entry model to record what we've been learning about chess and rock climbingwe need to define model for the kinds of entries users can make in their learning logs each entry needs to be associated with particular topic this relationship is called many-to-one relationshipmeaning many entries can be associated with one topic here' the code for the entry modelmodels py from django db import models class topic(models model)--snip- class entry(models model)"""something specific learned about topic"" topic models foreignkey(topicw text models textfield(date_added models datetimefield(auto_now_add=truex class metaverbose_name_plural 'entriesdef __str__(self)"""return string representation of the model ""return self text[: the entry class inherits from django' base model classjust as topic did the first attributetopicis foreignkey instance foreign key is database termit' reference to another record in the database this is the code that connects each entry to specific topic each topic is assigned keyor idwhen it' created when django needs to establish connection between two pieces of datait uses the key associated with each piece of information we'll use these connections shortly to retrieve all the entries associated with certain topic next is an attribute called textwhich is an instance of textfield this kind of field doesn' need size limitbecause we don' want to limit the size of individual entries the date_added attribute allows us to present entries in the order they were created and to place timestamp next to each entry at we nest the meta class inside our entry class meta holds extra information for managing modelhere it allows us to set special attribute telling django to use entries when it needs to refer to more than one entry