diff --git a/ungleichotp/otpauth/admin.py b/ungleichotp/otpauth/admin.py index 8c38f3f..e89a5d7 100644 --- a/ungleichotp/otpauth/admin.py +++ b/ungleichotp/otpauth/admin.py @@ -1,3 +1,9 @@ from django.contrib import admin # Register your models here. + +from django.contrib import admin + +from .models import OTPSeed + +admin.site.register(OTPSeed) diff --git a/ungleichotp/otpauth/migrations/0001_initial.py b/ungleichotp/otpauth/migrations/0001_initial.py new file mode 100644 index 0000000..29d70d1 --- /dev/null +++ b/ungleichotp/otpauth/migrations/0001_initial.py @@ -0,0 +1,25 @@ +# Generated by Django 2.1.2 on 2018-10-26 19:55 + +from django.db import migrations, models +import uuid + + +class Migration(migrations.Migration): + + initial = True + + dependencies = [ + ] + + operations = [ + migrations.CreateModel( + name='OTPSeed', + fields=[ + ('appuuid', models.UUIDField(default=uuid.uuid4, editable=False, primary_key=True, serialize=False)), + ('appname', models.CharField(max_length=128)), + ('username', models.CharField(max_length=128)), + ('seed', models.CharField(max_length=128)), + ('trusted', models.BooleanField(default=False)), + ], + ), + ] diff --git a/ungleichotp/otpauth/models.py b/ungleichotp/otpauth/models.py index 11b39d9..bf58364 100644 --- a/ungleichotp/otpauth/models.py +++ b/ungleichotp/otpauth/models.py @@ -1,4 +1,5 @@ from django.db import models +import uuid # Create your models here. class OTPSeed(models.Model):