We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 5bc6afe commit 2beaf8bCopy full SHA for 2beaf8b
backend/submissions/tests/test_models.py
@@ -12,6 +12,13 @@ def test_slug_is_not_regenerated_when_changing_title():
12
assert submission.slug == "hello"
13
14
submission.title = LazyI18nString({"en": "ciao", "it": "cia"})
15
+ submission.save(update_fields=["title"])
16
+
17
+ submission.refresh_from_db()
18
19
+ assert submission.slug == "hello"
20
21
+ submission.slug = ""
22
submission.save()
23
24
submission.refresh_from_db()
@@ -26,7 +33,7 @@ def test_syncs_pending_status_when_changing_status():
26
33
)
27
34
28
35
submission.status = Submission.STATUS.rejected
29
- submission.save()
36
+ submission.save(update_fields=["status"])
30
37
31
38
32
39
0 commit comments