From 289a47aee459422c2c0b4cb53d25000b562261da Mon Sep 17 00:00:00 2001 From: nathaniel smith Date: Fri, 13 Jan 2017 23:57:50 -0800 Subject: [PATCH] support longer key types --- .../migrations/0009_auto_20170114_0757.py | 20 +++++++++++++++++++ ttadmin/users/models.py | 2 +- 2 files changed, 21 insertions(+), 1 deletion(-) create mode 100644 ttadmin/users/migrations/0009_auto_20170114_0757.py diff --git a/ttadmin/users/migrations/0009_auto_20170114_0757.py b/ttadmin/users/migrations/0009_auto_20170114_0757.py new file mode 100644 index 0000000..a84ff28 --- /dev/null +++ b/ttadmin/users/migrations/0009_auto_20170114_0757.py @@ -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), + ), + ] diff --git a/ttadmin/users/models.py b/ttadmin/users/models.py index c713288..3bf5aeb 100644 --- a/ttadmin/users/models.py +++ b/ttadmin/users/models.py @@ -34,7 +34,7 @@ class Townie(User): class Pubkey(Model): - key_type = CharField(max_length=15, + key_type = CharField(max_length=50, blank=False, null=False, choices=SSH_TYPE_CHOICES,