1
0
Fork 0

Separates out models into more files

This commit is contained in:
Mouse Reeve 2020-09-17 13:09:11 -07:00
parent 8bbf1fe252
commit 431220fc7d
9 changed files with 217 additions and 197 deletions

View file

@ -0,0 +1,15 @@
''' connections to external ActivityPub servers '''
from django.db import models
from .base_model import FedireadsModel
class FederatedServer(FedireadsModel):
''' 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')
# is it mastodon, fedireads, etc
application_type = models.CharField(max_length=255, null=True)
application_version = models.CharField(max_length=255, null=True)
# TODO: blocked servers