parent
bf7fd912e9
commit
8875353a24
@ -1,3 +1,5 @@
|
||||
from django.contrib import admin
|
||||
|
||||
# Register your models here.
|
||||
from .models import Session
|
||||
admin.site.register(Session)
|
||||
|
||||
@ -0,0 +1,22 @@
|
||||
# Generated by Django 3.1.7 on 2021-04-02 14:34
|
||||
|
||||
from django.db import migrations, models
|
||||
|
||||
|
||||
class Migration(migrations.Migration):
|
||||
|
||||
initial = True
|
||||
|
||||
dependencies = [
|
||||
]
|
||||
|
||||
operations = [
|
||||
migrations.CreateModel(
|
||||
name='Session',
|
||||
fields=[
|
||||
('id', models.AutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')),
|
||||
('seconds', models.IntegerField()),
|
||||
('created_at', models.DateTimeField(auto_now_add=True)),
|
||||
],
|
||||
),
|
||||
]
|
||||
@ -1,3 +1,7 @@
|
||||
from django.db import models
|
||||
|
||||
# Create your models here.
|
||||
class Session(models.Model):
|
||||
seconds = models.IntegerField()
|
||||
created_at = models.DateTimeField(auto_now_add=True)
|
||||
|
||||
|
||||
Loading…
Reference in new issue