summaryrefslogtreecommitdiff
path: root/app/photos/migrations/0017_auto_20161130_1218.py
diff options
context:
space:
mode:
authorluxagraf <sng@luxagraf.net>2016-12-13 14:16:50 -0500
committerluxagraf <sng@luxagraf.net>2016-12-13 14:16:50 -0500
commitc2b4eee457e3b527795b674716d3d09688192fcf (patch)
treee70511a5c0150ddd19a138fab8f8ddec417c8af1 /app/photos/migrations/0017_auto_20161130_1218.py
parent59efbaf5415adedde575fcc026b247800491b039 (diff)
Added video upload tools and inserting
Diffstat (limited to 'app/photos/migrations/0017_auto_20161130_1218.py')
-rw-r--r--app/photos/migrations/0017_auto_20161130_1218.py38
1 files changed, 38 insertions, 0 deletions
diff --git a/app/photos/migrations/0017_auto_20161130_1218.py b/app/photos/migrations/0017_auto_20161130_1218.py
new file mode 100644
index 0000000..8d5a496
--- /dev/null
+++ b/app/photos/migrations/0017_auto_20161130_1218.py
@@ -0,0 +1,38 @@
+# -*- coding: utf-8 -*-
+# Generated by Django 1.9 on 2016-11-30 12:18
+from __future__ import unicode_literals
+
+import datetime
+from django.db import migrations, models
+import photos.models
+
+
+class Migration(migrations.Migration):
+
+ dependencies = [
+ ('photos', '0016_auto_20161022_1411'),
+ ]
+
+ operations = [
+ migrations.CreateModel(
+ name='LuxVideo',
+ fields=[
+ ('id', models.AutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')),
+ ('video_mp4', models.FileField(blank=True, null=True, upload_to=photos.models.get_vid_upload_path)),
+ ('video_webm', models.FileField(blank=True, null=True, upload_to=photos.models.get_vid_upload_path)),
+ ('video_poster', models.FileField(blank=True, null=True, upload_to=photos.models.get_vid_upload_path)),
+ ('title', models.CharField(blank=True, max_length=300, null=True)),
+ ('pub_date', models.DateTimeField(default=datetime.datetime.now)),
+ ],
+ options={
+ 'verbose_name_plural': 'Videos',
+ 'ordering': ('-pub_date', 'id'),
+ 'get_latest_by': 'pub_date',
+ },
+ ),
+ migrations.AlterField(
+ model_name='luximage',
+ name='pub_date',
+ field=models.DateTimeField(default=datetime.datetime.now),
+ ),
+ ]