sort edition list by rank

This commit is contained in:
Mouse Reeve
2021-01-11 11:16:10 -08:00
parent fe67f65307
commit 5b7f7aa0e3
4 changed files with 7 additions and 5 deletions

View File

@ -200,7 +200,7 @@ class KeyPair(ActivitypubMixin, BookWyrmModel):
blank=True, null=True, activitypub_field='publicKeyPem')
activity_serializer = activitypub.PublicKey
serialize_reverse_fields = [('owner', 'owner')]
serialize_reverse_fields = [('owner', 'owner', 'id')]
def get_remote_id(self):
# self.owner is set by the OneToOneField on User