Skip to content

Commit d5b8d7a

Browse files
committed
post and database blackifying done
1 parent 9fb66e3 commit d5b8d7a

File tree

4 files changed

+6
-9
lines changed

4 files changed

+6
-9
lines changed

chapter_post_and_database.asciidoc

Lines changed: 3 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1079,7 +1079,7 @@ AssertionError: 0 != 1
10791079
Let's adjust our view:
10801080

10811081
[role="sourcecode"]
1082-
.lists/views.py
1082+
.lists/views.py (ch05l020)
10831083
====
10841084
[source,python]
10851085
----
@@ -1117,7 +1117,7 @@ Let's see how the unit tests get on...they pass! Good. We can do a bit of
11171117
refactoring:
11181118

11191119
[role="sourcecode"]
1120-
.lists/views.py
1120+
.lists/views.py (ch05l021)
11211121
====
11221122
[source,python]
11231123
----
@@ -1166,13 +1166,10 @@ quite a small change to the logic of the view, there are quite a few little
11661166
tweaks to the implementation in code:
11671167

11681168
[role="sourcecode"]
1169-
.lists/views.py
1169+
.lists/views.py (ch05l023)
11701170
====
11711171
[source,python]
11721172
----
1173-
from lists.models import Item
1174-
[...]
1175-
11761173
def home_page(request):
11771174
if request.method == "POST":
11781175
new_item_text = request.POST["item_text"] # <1>

tests/test_chapter_post_and_database.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -57,7 +57,7 @@ def test_listings_and_commands_and_output(self):
5757
self.assert_all_listings_checked(self.listings)
5858
self.check_final_diff(ignore=[
5959
"moves",
60-
"Generated by Django 1.11",
60+
"Generated by Django 4.1",
6161
])
6262

6363

tests/test_chapter_working_incrementally.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -58,7 +58,7 @@ def test_listings_and_commands_and_output(self):
5858
self.recognise_listing_and_process_it()
5959

6060
self.assert_all_listings_checked(self.listings)
61-
self.check_final_diff(ignore=["moves", "Generated by Django 1.11"])
61+
self.check_final_diff(ignore=["moves", "Generated by Django 4.1"])
6262

6363

6464
if __name__ == "__main__":

0 commit comments

Comments
 (0)