##// END OF EJS Templates
Added info about attachments
Added info about attachments

File last commit:

r836:9ee107b9 decentral
r840:78400567 decentral
Show More
generate_keypair.py
16 lines | 424 B | text/x-python | PythonLexer
__author__ = 'neko259'
from django.core.management import BaseCommand
from django.db import transaction
from boards.models import KeyPair
class Command(BaseCommand):
help = 'Generates the new keypair. The first one will be primary.'
@transaction.atomic
def handle(self, *args, **options):
key = KeyPair.objects.generate_key(
primary=not KeyPair.objects.has_primary())
print(key)