This repository has been archived on 2021-04-21. You can view files and clone it, but cannot push or open issues or pull requests.
2021-04-07 13:52:32 +00:00
|
|
|
from django.db import models
|
2021-04-07 13:44:56 +00:00
|
|
|
|
2021-04-07 13:52:32 +00:00
|
|
|
|
2021-04-07 13:44:56 +00:00
|
|
|
class VAPIDKeyset(models.Model):
|
|
|
|
public_key = models.BinaryField(max_length=87)
|
|
|
|
private_key = models.BinaryField(max_length=43)
|
|
|
|
|
|
|
|
def __str__(self):
|
|
|
|
return "public_key:{}... private_key:{}...".format(
|
|
|
|
self.public_key.tobytes()[:10],
|
|
|
|
self.private_key.tobytes()[:10]
|
|
|
|
)
|