Skip to content

Commit 375a408

Browse files
authored
Init path to ensure it exists (#11178)
1 parent a49f111 commit 375a408

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

readthedocs/notifications/models.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -99,6 +99,7 @@ def get_message(self):
9999

100100
def get_absolute_url(self):
101101
content_type_name = self.attached_to_content_type.name
102+
path = ""
102103
if content_type_name == "user":
103104
url = "users-notifications-detail"
104105
path = reverse(

0 commit comments

Comments
 (0)