From a51040e02b1db68eca301e165659918359886d53 Mon Sep 17 00:00:00 2001 From: Aditya Anand M C Date: Thu, 21 May 2020 15:52:01 +0530 Subject: [PATCH] add missing migration --- .../migrations/0020_auto_20200521_1020.py | 19 +++++++++++++++++++ app/townsquare/utils.py | 4 +++- app/townsquare/views.py | 1 - 3 files changed, 22 insertions(+), 2 deletions(-) create mode 100644 app/townsquare/migrations/0020_auto_20200521_1020.py diff --git a/app/townsquare/migrations/0020_auto_20200521_1020.py b/app/townsquare/migrations/0020_auto_20200521_1020.py new file mode 100644 index 00000000000..46ede252fcf --- /dev/null +++ b/app/townsquare/migrations/0020_auto_20200521_1020.py @@ -0,0 +1,19 @@ +# Generated by Django 2.2.4 on 2020-05-21 10:20 + +from django.db import migrations, models +import django.db.models.deletion + + +class Migration(migrations.Migration): + + dependencies = [ + ('townsquare', '0019_pinnedpost'), + ] + + operations = [ + migrations.AlterField( + model_name='pinnedpost', + name='activity', + field=models.ForeignKey(on_delete=django.db.models.deletion.CASCADE, related_name='pin', to='dashboard.Activity'), + ), + ] diff --git a/app/townsquare/utils.py b/app/townsquare/utils.py index 37bf5520b3e..9c92a9934b4 100644 --- a/app/townsquare/utils.py +++ b/app/townsquare/utils.py @@ -1,6 +1,8 @@ -from .models import Offer from grants.models import Grant +from .models import Offer + + def is_user_townsquare_enabled(user): if not user.is_authenticated: return False diff --git a/app/townsquare/views.py b/app/townsquare/views.py index 50357d6fd23..c3d49ba7ffe 100644 --- a/app/townsquare/views.py +++ b/app/townsquare/views.py @@ -14,7 +14,6 @@ from dashboard.models import ( Activity, HackathonEvent, Profile, TribeMember, get_my_earnings_counter_profiles, get_my_grants, ) - from kudos.models import Token from marketing.mails import comment_email, new_action_request from perftools.models import JSONStore