support longer key types

pull/2/head
nathaniel smith 2017-01-13 23:57:50 -08:00
parent 6bfd636149
commit 289a47aee4
2 changed files with 21 additions and 1 deletions

View File

@ -0,0 +1,20 @@
# -*- coding: utf-8 -*-
# Generated by Django 1.10.2 on 2017-01-14 07:57
from __future__ import unicode_literals
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
('users', '0008_auto_20170113_2128'),
]
operations = [
migrations.AlterField(
model_name='pubkey',
name='key_type',
field=models.CharField(choices=[('ssh-rsa', 'ssh-rsa'), ('ssh-dss', 'ssh-dss')], max_length=50),
),
]

View File

@ -34,7 +34,7 @@ class Townie(User):
class Pubkey(Model): class Pubkey(Model):
key_type = CharField(max_length=15, key_type = CharField(max_length=50,
blank=False, blank=False,
null=False, null=False,
choices=SSH_TYPE_CHOICES, choices=SSH_TYPE_CHOICES,