Add description field to Tokens

reminder
Etzelia 2018-11-23 16:28:05 +01:00
parent 73a6c51d44
commit 6e1063bb0e
1 changed files with 1 additions and 0 deletions

View File

@ -4,6 +4,7 @@ from minecraft_manager.api.api import generate_password
class Token(models.Model):
key = models.CharField("Key", default=generate_password, max_length=50, unique=True)
description = models.CharField("Description", max_length=200, blank=True)
active = models.BooleanField("Active", default=True)
web_get_permission = models.BooleanField("Web GET", default=False)
web_post_permission = models.BooleanField("Web POST", default=False)