Skip to content

Commit dcecd75

Browse files
atodorovclaudep
authored andcommitted
Remove Signal(providing_args) argument b/c it is deprecated
RemovedInDjango40Warning: The providing_args argument is deprecated. As it is purely documentational, it has no replacement. If you rely on this argument as documentation, you can move the text to a code comment or docstring.
1 parent e0fcfa9 commit dcecd75

File tree

1 file changed

+6
-3
lines changed

1 file changed

+6
-3
lines changed

django_comments/signals.py

Lines changed: 6 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -9,13 +9,16 @@
99
# discarded and a 400 response. This signal is sent at more or less
1010
# the same time (just before, actually) as the Comment object's pre-save signal,
1111
# except that the HTTP request is sent along with this signal.
12-
comment_will_be_posted = Signal(providing_args=["comment", "request"])
12+
# Arguments: "comment", "request"
13+
comment_will_be_posted = Signal()
1314

1415
# Sent just after a comment was posted. See above for how this differs
1516
# from the Comment object's post-save signal.
16-
comment_was_posted = Signal(providing_args=["comment", "request"])
17+
# Arguments: "comment", "request"
18+
comment_was_posted = Signal()
1719

1820
# Sent after a comment was "flagged" in some way. Check the flag to see if this
1921
# was a user requesting removal of a comment, a moderator approving/removing a
2022
# comment, or some other custom user flag.
21-
comment_was_flagged = Signal(providing_args=["comment", "flag", "created", "request"])
23+
# Arguments: "comment", "flag", "created", "request"
24+
comment_was_flagged = Signal()

0 commit comments

Comments
 (0)