mirror of
https://github.com/netbox-community/netbox.git
synced 2025-07-22 03:56:53 -06:00
Suppress default permissions for Token model
This commit is contained in:
parent
0b10d98e0b
commit
fd55360672
@ -19,6 +19,9 @@ class Token(models.Model):
|
||||
write_enabled = models.BooleanField(default=True, help_text="Permit create/update/delete operations using this key")
|
||||
description = models.CharField(max_length=100, blank=True)
|
||||
|
||||
class Meta:
|
||||
default_permissions = []
|
||||
|
||||
def __str__(self):
|
||||
return u"API key for {}".format(self.user)
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user