From a58b06d86779b0b0a8dc61b1e42a072e4f5c410b Mon Sep 17 00:00:00 2001 From: King Date: Fri, 13 Apr 2018 10:45:38 +0000 Subject: Update slides.md --- tutorial_6_django_shell_queries/slides.md | 3 +++ 1 file changed, 3 insertions(+) (limited to 'tutorial_6_django_shell_queries') 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 >>> ]> # 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] ---------------------------------------------- -- cgit