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}}