From cc5bd52147349a86ec575d182a1fbc160682e02d Mon Sep 17 00:00:00 2001 From: marosmola Date: Sun, 1 Nov 2020 15:42:09 +0100 Subject: [PATCH] remove migration file and fix unused import --- teachers/admin.py | 2 +- teachers/migrations/0002_teachersalary.py | 25 ----------------------- 2 files changed, 1 insertion(+), 26 deletions(-) delete mode 100644 teachers/migrations/0002_teachersalary.py diff --git a/teachers/admin.py b/teachers/admin.py index e9bef9bf..0eb5b0e9 100644 --- a/teachers/admin.py +++ b/teachers/admin.py @@ -6,7 +6,7 @@ from django.contrib.auth.forms import UserCreationForm from django.contrib.auth.models import User from django.utils.translation import ugettext_lazy as _ -from django.db.models import Avg, Sum +from django.db.models import Sum from django.db.models.functions import Trunc from .models import Teacher, TeacherSalary, FinanceSummary diff --git a/teachers/migrations/0002_teachersalary.py b/teachers/migrations/0002_teachersalary.py deleted file mode 100644 index 4180cd33..00000000 --- a/teachers/migrations/0002_teachersalary.py +++ /dev/null @@ -1,25 +0,0 @@ -# Generated by Django 3.1.2 on 2020-10-27 12:34 - -import datetime -from django.db import migrations, models -import django.db.models.deletion - - -class Migration(migrations.Migration): - - dependencies = [ - ('teachers', '0001_initial'), - ] - - operations = [ - migrations.CreateModel( - name='TeacherSalary', - fields=[ - ('id', models.AutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')), - ('valid_until', models.DateField(default=datetime.date(2020, 11, 1), verbose_name='Valid Until')), - ('total_amount', models.PositiveIntegerField(default=0)), - ('paid_on', models.DateTimeField(auto_now_add=True)), - ('teacher', models.ForeignKey(on_delete=django.db.models.deletion.PROTECT, to='teachers.teacher')), - ], - ), - ]