Less DB queries in test factories

This commit is contained in:
Eliot Berriot 2019-01-04 14:36:08 +01:00
parent b6902009ac
commit d4eff5aa32
No known key found for this signature in database
GPG key ID: DD6965E2476E5C27
9 changed files with 61 additions and 54 deletions

View file

@ -238,6 +238,15 @@ class Actor(models.Model):
)
return data
@property
def keys(self):
return self.private_key, self.public_key
@keys.setter
def keys(self, v):
self.private_key = v[0].decode("utf-8")
self.public_key = v[1].decode("utf-8")
class InboxItem(models.Model):
"""