mirror of
https://github.com/retspen/webvirtcloud
synced 2024-12-25 23:55:24 +00:00
13 lines
291 B
Python
13 lines
291 B
Python
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}"
|
|
|
|
class Meta:
|
|
proxy = True
|