Skip to content

Commit eb686d6

Browse files
committed
create missing migration + lint fixes
1 parent 150bea9 commit eb686d6

4 files changed

Lines changed: 23 additions & 4 deletions

File tree

Lines changed: 19 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,19 @@
1+
# Generated by Django 2.2.4 on 2020-05-05 18:24
2+
3+
from django.db import migrations, models
4+
import django.db.models.deletion
5+
6+
7+
class Migration(migrations.Migration):
8+
9+
dependencies = [
10+
('dashboard', '0105_auto_20200430_1352'),
11+
]
12+
13+
operations = [
14+
migrations.AlterField(
15+
model_name='earning',
16+
name='org_profile',
17+
field=models.ForeignKey(blank=True, null=True, on_delete=django.db.models.deletion.CASCADE, related_name='org_earnings', to='dashboard.Profile'),
18+
),
19+
]

app/dashboard/models.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -53,6 +53,7 @@
5353
from avatar.models import SocialAvatar
5454
from avatar.utils import get_user_github_avatar_image
5555
from bleach import clean
56+
from bounty_requests.models import BountyRequest
5657
from bs4 import BeautifulSoup
5758
from dashboard.tokens import addr_to_token, token_by_name
5859
from economy.models import ConversionRate, EncodeAnything, SuperModel, get_0_time, get_time
@@ -66,7 +67,6 @@
6667
from marketing.models import LeaderboardRank
6768
from rest_framework import serializers
6869
from web3 import Web3
69-
from bounty_requests.models import BountyRequest
7070

7171
from .notifications import maybe_market_to_github, maybe_market_to_slack, maybe_market_to_user_slack
7272
from .signals import m2m_changed_interested

app/dashboard/router.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -29,8 +29,8 @@
2929
from retail.helpers import get_ip
3030

3131
from .models import (
32-
Activity, Bounty, BountyFulfillment, BountyInvites, BountyRequest, HackathonEvent, HackathonProject, Interest, Profile,
33-
ProfileSerializer, SearchHistory, TribeMember,
32+
Activity, Bounty, BountyFulfillment, BountyInvites, BountyRequest, HackathonEvent, HackathonProject, Interest,
33+
Profile, ProfileSerializer, SearchHistory, TribeMember,
3434
)
3535

3636
logger = logging.getLogger(__name__)

scripts/debug/hackathon_export.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
from dashboard.models import HackathonEvent, Bounty
1+
from dashboard.models import Bounty, HackathonEvent
22

33
# total stats
44

0 commit comments

Comments
 (0)