0
0
mirror of https://github.com/django/django.git synced 2024-11-21 19:09:18 +01:00

running black for formatting

This commit is contained in:
AP Jama 2024-08-21 23:55:53 +01:00
parent adb6fac844
commit bd233f52d7

View File

@ -166,7 +166,9 @@ class LogEntry(models.Model):
if not self.content_type:
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):
return self.get_admin_url()