diff options
| author | Mitch Riedstra <Mitch@riedstra.us> | 2017-10-18 15:55:23 -0400 |
|---|---|---|
| committer | Mitch Riedstra <Mitch@riedstra.us> | 2017-10-18 15:55:23 -0400 |
| commit | 5b2f6041e739be4810709ca49d0538279d3f549d (patch) | |
| tree | 8aba1c4a2d59e85a873bdcbb3327722b5e876ffa /app/dispatch/migrations | |
| parent | 2c4f4a6a09feeb333f59cfc6c2d5d6c8e417599f (diff) | |
| download | dispatch-tracker-5b2f6041e739be4810709ca49d0538279d3f549d.tar.gz dispatch-tracker-5b2f6041e739be4810709ca49d0538279d3f549d.tar.xz | |
Added a delivered to field. File uploads work. Load detail view works properly now. File upload names are properly set. You can now delete uploaded files
Diffstat (limited to 'app/dispatch/migrations')
| -rw-r--r-- | app/dispatch/migrations/0001_initial.py | 3 | ||||
| -rw-r--r-- | app/dispatch/migrations/0002_auto_20171018_1602.py | 30 |
2 files changed, 32 insertions, 1 deletions
diff --git a/app/dispatch/migrations/0001_initial.py b/app/dispatch/migrations/0001_initial.py index b93c66b..7a920f7 100644 --- a/app/dispatch/migrations/0001_initial.py +++ b/app/dispatch/migrations/0001_initial.py @@ -1,5 +1,5 @@ # -*- coding: utf-8 -*- -# Generated by Django 1.11.5 on 2017-10-13 14:52 +# Generated by Django 1.11.5 on 2017-10-18 15:46 from __future__ import unicode_literals from django.conf import settings @@ -44,6 +44,7 @@ class Migration(migrations.Migration): fields=[ ('id', models.AutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')), ('description', models.CharField(max_length=256)), + ('filename', models.CharField(max_length=256)), ('document', models.FileField(upload_to='paperwork/')), ('load', models.ForeignKey(on_delete=django.db.models.deletion.CASCADE, to='dispatch.Load')), ], diff --git a/app/dispatch/migrations/0002_auto_20171018_1602.py b/app/dispatch/migrations/0002_auto_20171018_1602.py new file mode 100644 index 0000000..6446dd4 --- /dev/null +++ b/app/dispatch/migrations/0002_auto_20171018_1602.py @@ -0,0 +1,30 @@ +# -*- coding: utf-8 -*- +# Generated by Django 1.11.5 on 2017-10-18 16:02 +from __future__ import unicode_literals + +import dispatch.models +from django.db import migrations, models + + +class Migration(migrations.Migration): + + dependencies = [ + ('dispatch', '0001_initial'), + ] + + operations = [ + migrations.RemoveField( + model_name='paperwork', + name='filename', + ), + migrations.AddField( + model_name='load', + name='delivered_to', + field=models.CharField(default='', max_length=256), + ), + migrations.AlterField( + model_name='paperwork', + name='document', + field=models.FileField(upload_to=dispatch.models.paperwork_user_directory_path), + ), + ] |
