Updates federated server model with notes field

Also makes it more editable, and changes the status types
This commit is contained in:
Mouse Reeve
2021-04-07 11:28:31 -07:00
parent e3e28973f1
commit 8261fbf86a
4 changed files with 40 additions and 38 deletions

View File

@ -19,8 +19,9 @@ class FederatedServer(BookWyrmModel):
max_length=255, default="federated", choices=FederationStatus.choices
)
# is it mastodon, bookwyrm, etc
application_type = models.CharField(max_length=255, null=True)
application_version = models.CharField(max_length=255, null=True)
application_type = models.CharField(max_length=255, null=True, blank=True)
application_version = models.CharField(max_length=255, null=True, blank=True)
notes = models.TextField(null=True, blank=True)
def block(self):
""" block a server """