From 4e6f36048dc197a76036670f3e3a3f2ea4316bf3 Mon Sep 17 00:00:00 2001 From: Benni Baermann Date: Tue, 29 Sep 2020 09:54:31 +0200 Subject: [PATCH] lost files added --- input/forms.py | 7 +++++++ input/migrations/0002_auto_20200922_1340.py | 23 +++++++++++++++++++++ input/templates/input/project.html | 1 + 3 files changed, 31 insertions(+) create mode 100644 input/forms.py create mode 100644 input/migrations/0002_auto_20200922_1340.py create mode 100644 input/templates/input/project.html diff --git a/input/forms.py b/input/forms.py new file mode 100644 index 0000000..a220875 --- /dev/null +++ b/input/forms.py @@ -0,0 +1,7 @@ +from django.db import models +from django.forms import ModelForm + +class ProjectForm(ModelForm): + class Meta: + model = Project + fields = '__all__' diff --git a/input/migrations/0002_auto_20200922_1340.py b/input/migrations/0002_auto_20200922_1340.py new file mode 100644 index 0000000..a6e76f2 --- /dev/null +++ b/input/migrations/0002_auto_20200922_1340.py @@ -0,0 +1,23 @@ +# Generated by Django 3.1.1 on 2020-09-22 13:40 + +from django.db import migrations + + +class Migration(migrations.Migration): + + dependencies = [ + ('input', '0001_initial'), + ] + + operations = [ + migrations.RenameField( + model_name='project', + old_name='project_name', + new_name='name', + ), + migrations.RenameField( + model_name='project', + old_name='project_start', + new_name='start', + ), + ] diff --git a/input/templates/input/project.html b/input/templates/input/project.html new file mode 100644 index 0000000..8e184c4 --- /dev/null +++ b/input/templates/input/project.html @@ -0,0 +1 @@ +{{formset}}