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