[django] adding model
This commit is contained in:
parent
13c7cdd294
commit
4227b1b73c
3 changed files with 32 additions and 0 deletions
|
@ -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)
|
||||
|
|
25
ungleichotp/otpauth/migrations/0001_initial.py
Normal file
25
ungleichotp/otpauth/migrations/0001_initial.py
Normal file
|
@ -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)),
|
||||
],
|
||||
),
|
||||
]
|
|
@ -1,4 +1,5 @@
|
|||
from django.db import models
|
||||
import uuid
|
||||
|
||||
# Create your models here.
|
||||
class OTPSeed(models.Model):
|
||||
|
|
Loading…
Reference in a new issue