diff options
Diffstat (limited to 'app/unused_apps/daily')
-rw-r--r-- | app/unused_apps/daily/migrations/0001_initial.py | 2 | ||||
-rw-r--r-- | app/unused_apps/daily/migrations/0011_auto_20171214_2239.py | 21 | ||||
-rw-r--r-- | app/unused_apps/daily/models.py | 2 |
3 files changed, 23 insertions, 2 deletions
diff --git a/app/unused_apps/daily/migrations/0001_initial.py b/app/unused_apps/daily/migrations/0001_initial.py index b3ba687..70a9755 100644 --- a/app/unused_apps/daily/migrations/0001_initial.py +++ b/app/unused_apps/daily/migrations/0001_initial.py @@ -13,7 +13,7 @@ class Migration(migrations.Migration): initial = True dependencies = [ - ('locations', '__first__'), + #('locations', '__first__'), ] operations = [ diff --git a/app/unused_apps/daily/migrations/0011_auto_20171214_2239.py b/app/unused_apps/daily/migrations/0011_auto_20171214_2239.py new file mode 100644 index 0000000..2cf9207 --- /dev/null +++ b/app/unused_apps/daily/migrations/0011_auto_20171214_2239.py @@ -0,0 +1,21 @@ +# -*- coding: utf-8 -*- +# Generated by Django 1.11.5 on 2017-12-14 22:39 +from __future__ import unicode_literals + +from django.db import migrations, models +import django.db.models.deletion + + +class Migration(migrations.Migration): + + dependencies = [ + ('daily', '0010_auto_20161023_2014'), + ] + + operations = [ + migrations.AlterField( + model_name='checkin', + name='location', + field=models.ForeignKey(blank=True, null=True, on_delete=django.db.models.deletion.CASCADE, related_name='adsjf', to='locations.Location'), + ), + ] diff --git a/app/unused_apps/daily/models.py b/app/unused_apps/daily/models.py index 1bf7bfd..bd5f018 100644 --- a/app/unused_apps/daily/models.py +++ b/app/unused_apps/daily/models.py @@ -10,7 +10,7 @@ from utils.widgets import markdown_to_html class CheckIn(models.Model): point = models.PointField(blank=True) - location = models.ForeignKey(Location, blank=True, null=True) + location = models.ForeignKey(Location, blank=True, null=True, related_name='adsjf') date = models.DateField(default=timezone.now) class Meta: |