Jump to content

Django for Designers: Difference between revisions

→‎Add some bookmarks via the command line: Fix typo where "b" was misspelled as "q"
imported>Paulproteus
(→‎Add some bookmarks via the command line: Fix typo where "b" was misspelled as "q")
imported>Paulproteus
(→‎Add some bookmarks via the command line: Fix typo where "b" was misspelled as "q")
Line 834:
Try getting the ID number of our new bookmark 'b' by typing:
 
<source lang="python">>>> qb.id</source>
 
What happens?
Line 844:
Get the id of the Bookmark instance. Because it’s been saved, it has an ID in the database now! Even though we didn't specify one in our models.py, every saved model instance automatically has an id field.
 
<source lang="python">>>> qb.id
1</source>
 
Anonymous user
Cookies help us deliver our services. By using our services, you agree to our use of cookies.