From 7e4586e4f9d1a00be0a546b490ebfd09d0b8b307 Mon Sep 17 00:00:00 2001 From: Mitch Riedstra Date: Wed, 11 Oct 2017 15:04:54 -0400 Subject: Misc developments and messing with file uploads --- app/dispatch/migrations/0003_paperwork.py | 25 +++++++++++++++++++++++++ 1 file changed, 25 insertions(+) create mode 100644 app/dispatch/migrations/0003_paperwork.py (limited to 'app/dispatch/migrations/0003_paperwork.py') diff --git a/app/dispatch/migrations/0003_paperwork.py b/app/dispatch/migrations/0003_paperwork.py new file mode 100644 index 0000000..72c27d3 --- /dev/null +++ b/app/dispatch/migrations/0003_paperwork.py @@ -0,0 +1,25 @@ +# -*- coding: utf-8 -*- +# Generated by Django 1.11.5 on 2017-10-11 16:15 +from __future__ import unicode_literals + +from django.db import migrations, models +import django.db.models.deletion + + +class Migration(migrations.Migration): + + dependencies = [ + ('dispatch', '0002_auto_20171010_0140'), + ] + + operations = [ + migrations.CreateModel( + name='Paperwork', + fields=[ + ('id', models.AutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')), + ('description', models.CharField(max_length=256)), + ('document', models.FileField(upload_to='paperwork/')), + ('load', models.OneToOneField(on_delete=django.db.models.deletion.CASCADE, to='dispatch.Load')), + ], + ), + ] -- cgit v1.2.3