mirror of
https://github.com/retspen/webvirtcloud.git
synced 2026-06-07 21:04:36 +00:00
fix some linter warnings
This commit is contained in:
@@ -1,9 +1,11 @@
|
||||
from django.contrib.auth.models import Permission as P
|
||||
|
||||
|
||||
class Permission(P):
|
||||
"""
|
||||
Proxy model to Django Permissions model allows us to override __str__
|
||||
"""
|
||||
|
||||
def __str__(self):
|
||||
return f'{self.content_type.app_label}: {self.name}'
|
||||
|
||||
|
||||
Reference in New Issue
Block a user