fix a little question ordering bug
This commit is contained in:
@@ -12,8 +12,6 @@ class CheckCanEditMixin():
|
||||
def get_context_data(self, **kwargs):
|
||||
context = super().get_context_data(**kwargs)
|
||||
|
||||
print(self.object)
|
||||
print("1234", self.object.check_user_can_edit(self.request.user))
|
||||
context["can_edit"] = self.object.check_user_can_edit(self.request.user)
|
||||
|
||||
return context
|
||||
|
||||
Reference in New Issue
Block a user