Runs black

This commit is contained in:
Mouse Reeve
2021-03-08 08:49:10 -08:00
parent a07f955781
commit 70296e760b
198 changed files with 10239 additions and 8572 deletions

View File

@ -1,15 +1,17 @@
''' connections to external ActivityPub servers '''
""" connections to external ActivityPub servers """
from django.db import models
from .base_model import BookWyrmModel
class FederatedServer(BookWyrmModel):
''' store which server's we federate with '''
""" store which server's we federate with """
server_name = models.CharField(max_length=255, unique=True)
# federated, blocked, whatever else
status = models.CharField(max_length=255, default='federated')
status = models.CharField(max_length=255, default="federated")
# is it mastodon, bookwyrm, etc
application_type = models.CharField(max_length=255, null=True)
application_version = models.CharField(max_length=255, null=True)
# TODO: blocked servers