Commit 503af8c5 authored by dorothee.kueppers's avatar dorothee.kueppers
Browse files

clean up sqlite

parent 33307c83
# Generated by Django 3.0.7 on 2020-07-01 18:05
# Generated by Django 3.0.7 on 2020-07-06 08:53
import datetime
from django.db import migrations, models
import django.db.models.deletion
import recurrence.fields
class Migration(migrations.Migration):
......@@ -12,20 +15,26 @@ class Migration(migrations.Migration):
operations = [
migrations.CreateModel(
name='Todo',
name='Selection',
fields=[
('id', models.AutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')),
('text', models.CharField(max_length=200)),
('complete', models.BooleanField(default=False)),
('total_time', models.IntegerField(default=0)),
('active', models.BooleanField(default=False)),
('started', models.DateTimeField(default=datetime.datetime.today)),
('endtime', models.DateTimeField()),
],
),
migrations.CreateModel(
name='Selection',
name='Todo',
fields=[
('id', models.AutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')),
('name', models.CharField(default='name', max_length=30)),
('total_time', models.TimeField(default=0)),
('items', models.ManyToManyField(to='todo.Todo')),
('text', models.CharField(max_length=200)),
('complete', models.BooleanField(default=False)),
('duration', models.IntegerField(default=15)),
('created', models.DateField(default=datetime.date.today)),
('rank', models.IntegerField(default=1)),
('recurrences', recurrence.fields.RecurrenceField(blank=True, null=True)),
('selection', models.ForeignKey(null=True, on_delete=django.db.models.deletion.SET_NULL, to='todo.Selection')),
],
),
]
# Generated by Django 3.0.7 on 2020-07-01 18:20
from django.db import migrations
class Migration(migrations.Migration):
dependencies = [
('todo', '0001_initial'),
]
operations = [
migrations.RemoveField(
model_name='selection',
name='name',
),
]
# Generated by Django 3.0.7 on 2020-07-01 18:21
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
('todo', '0002_remove_selection_name'),
]
operations = [
migrations.AddField(
model_name='selection',
name='name',
field=models.CharField(default='name', max_length=30),
),
]
# Generated by Django 3.0.7 on 2020-07-02 05:09
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
('todo', '0003_selection_name'),
]
operations = [
migrations.AlterField(
model_name='selection',
name='total_time',
field=models.IntegerField(default=0),
),
]
# Generated by Django 3.0.7 on 2020-07-02 18:20
import datetime
from django.db import migrations, models
import recurrence.fields
class Migration(migrations.Migration):
dependencies = [
('todo', '0004_auto_20200702_0509'),
]
operations = [
migrations.AddField(
model_name='todo',
name='created',
field=models.DateTimeField(default=datetime.datetime.now),
),
migrations.AddField(
model_name='todo',
name='due_date',
field=models.DateTimeField(null=True),
),
migrations.AddField(
model_name='todo',
name='duration',
field=models.IntegerField(default=15),
),
migrations.AddField(
model_name='todo',
name='rank',
field=models.IntegerField(default=1),
),
migrations.AddField(
model_name='todo',
name='recurrences',
field=recurrence.fields.RecurrenceField(null=True),
),
]
# Generated by Django 3.0.7 on 2020-07-02 18:22
import datetime
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
('todo', '0005_auto_20200702_1820'),
]
operations = [
migrations.AlterField(
model_name='todo',
name='created',
field=models.DateField(default=datetime.date.today),
),
]
# Generated by Django 3.0.7 on 2020-07-02 20:24
from django.db import migrations
class Migration(migrations.Migration):
dependencies = [
('todo', '0006_auto_20200702_1822'),
]
operations = [
migrations.RemoveField(
model_name='todo',
name='due_date',
),
]
# Generated by Django 3.0.7 on 2020-07-04 22:02
from django.db import migrations, models
import django.db.models.deletion
import recurrence.fields
class Migration(migrations.Migration):
dependencies = [
('todo', '0007_remove_todo_due_date'),
]
operations = [
migrations.RemoveField(
model_name='selection',
name='items',
),
migrations.AddField(
model_name='todo',
name='selection',
field=models.ForeignKey(null=True, on_delete=django.db.models.deletion.SET_NULL, to='todo.Selection'),
),
migrations.AlterField(
model_name='todo',
name='recurrences',
field=recurrence.fields.RecurrenceField(blank=True, null=True),
),
]
# Generated by Django 3.0.7 on 2020-07-05 13:38
import datetime
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
('todo', '0008_auto_20200705_0002'),
]
operations = [
migrations.AddField(
model_name='selection',
name='active',
field=models.BooleanField(default=False),
),
migrations.AddField(
model_name='selection',
name='endtime',
field=models.DateField(default=datetime.datetime.today),
preserve_default=False,
),
migrations.AddField(
model_name='selection',
name='started',
field=models.DateField(default=datetime.datetime.today),
),
]
# Generated by Django 3.0.7 on 2020-07-05 13:39
import datetime
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
('todo', '0009_auto_20200705_1538'),
]
operations = [
migrations.AlterField(
model_name='selection',
name='endtime',
field=models.DateTimeField(),
),
migrations.AlterField(
model_name='selection',
name='started',
field=models.DateTimeField(default=datetime.datetime.today),
),
]
# Generated by Django 3.0.7 on 2020-07-05 22:50
from django.db import migrations
class Migration(migrations.Migration):
dependencies = [
('todo', '0010_auto_20200705_1539'),
]
operations = [
migrations.RemoveField(
model_name='selection',
name='name',
),
]
......@@ -11,7 +11,7 @@ class Selection(models.Model):
endtime = models.DateTimeField()
def __str__(self):
return f'{self.name}, total time: {self.total_time.__str__()}'
return f'Aufgabenliste {self.pk}, Gesamtdauer: {self.total_time.__str__()}'
class Todo(models.Model):
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment