Skip to content

Commit 23a39a7

Browse files
committed
Fix admin change password view error
1 parent aee7ef3 commit 23a39a7

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

fluent_dashboard/items.py

+2
Original file line numberDiff line numberDiff line change
@@ -116,6 +116,8 @@ def get_edited_object(self, request):
116116
try:
117117
object_id = resolvermatch.kwargs['object_id'] # Django 2.0+
118118
except KeyError:
119+
if not resolvermatch.args:
120+
return None
119121
object_id = resolvermatch.args[0]
120122

121123
return self.get_object_by_natural_key(match.group(1), match.group(2), object_id)

0 commit comments

Comments
 (0)