mirror of
https://github.com/django/django.git
synced 2024-12-22 17:16:24 +00:00
running black for formatting
This commit is contained in:
parent
adb6fac844
commit
bd233f52d7
@ -166,7 +166,9 @@ class LogEntry(models.Model):
|
|||||||
if not self.content_type:
|
if not self.content_type:
|
||||||
return self.get_admin_url()
|
return self.get_admin_url()
|
||||||
|
|
||||||
view_permission_name = f"{self.content_type.app_label}.view_{self.content_type.model}"
|
view_permission_name = (
|
||||||
|
f"{self.content_type.app_label}.view_{self.content_type.model}"
|
||||||
|
)
|
||||||
if self.user.has_perm(view_permission_name):
|
if self.user.has_perm(view_permission_name):
|
||||||
return self.get_admin_url()
|
return self.get_admin_url()
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user