summaryrefslogtreecommitdiff
path: root/tutorial_6_django_shell_queries
diff options
context:
space:
mode:
authorKing2018-04-13 10:45:38 +0000
committerGitHub2018-04-13 10:45:38 +0000
commita58b06d86779b0b0a8dc61b1e42a072e4f5c410b (patch)
tree6a1cc75cf2ad338491b90b245d9864fac6792e0c /tutorial_6_django_shell_queries
parent35757f1dd95cdcb0307b6ca52fb784565a1d97ca (diff)
downloadlearn_django-a58b06d86779b0b0a8dc61b1e42a072e4f5c410b.tar.gz
learn_django-a58b06d86779b0b0a8dc61b1e42a072e4f5c410b.tar.bz2
learn_django-a58b06d86779b0b0a8dc61b1e42a072e4f5c410b.zip
Update slides.md
Diffstat (limited to 'tutorial_6_django_shell_queries')
-rw-r--r--tutorial_6_django_shell_queries/slides.md3
1 files changed, 3 insertions, 0 deletions
diff --git a/tutorial_6_django_shell_queries/slides.md b/tutorial_6_django_shell_queries/slides.md
index d845cac..92ae0a4 100644
--- a/tutorial_6_django_shell_queries/slides.md
+++ b/tutorial_6_django_shell_queries/slides.md
@@ -64,6 +64,7 @@ Run the following Django Query
>>> <QuerySet [<Blog: Blog object>]> # Output
Explanation: This django query returns all the instances of the Blog model.
+Returns a QuerySet similar to a list
Now let's add a new blog
@@ -171,6 +172,8 @@ Explanation: You can always access the information of the Blog object through it
You can also delete objects from shell
>>> b2.delete()
+
+(For script creator: Now again we can do a filter or get with id =2, get will throw an Exception that Blog.DoesNotExists)
Remaining conluding slides with the Assignment [00:40 | 8:24]
----------------------------------------------