mirror of
https://github.com/jointakahe/takahe.git
synced 2024-11-25 00:30:59 +00:00
Fix domain index issue
This commit is contained in:
parent
3f8213f54a
commit
68eea142b1
1 changed files with 3 additions and 0 deletions
|
@ -108,6 +108,9 @@ class Domain(StatorModel):
|
|||
root_federation = "/admin/federation/"
|
||||
edit_federation = "/admin/federation/{self.domain}/"
|
||||
|
||||
class Meta:
|
||||
indexes: list = []
|
||||
|
||||
@classmethod
|
||||
def get_remote_domain(cls, domain: str) -> "Domain":
|
||||
return cls.objects.get_or_create(domain=domain.lower(), local=False)[0]
|
||||
|
|
Loading…
Reference in a new issue