mirror of
https://github.com/netbox-community/netbox.git
synced 2025-07-28 19:36:26 -06:00
Suppress default permissions for Token model
This commit is contained in:
parent
1588c6226b
commit
c1f98043f3
@ -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