Skip to content

Commit

Permalink
Lint the code
Browse files Browse the repository at this point in the history
  • Loading branch information
sks444 committed Apr 10, 2020
1 parent 3aca076 commit 035282b
Show file tree
Hide file tree
Showing 4 changed files with 70 additions and 25 deletions.
34 changes: 25 additions & 9 deletions junction/conferences/migrations/0016_auto_20200410_1926.py
Original file line number Diff line number Diff line change
Expand Up @@ -10,23 +10,39 @@
class Migration(migrations.Migration):

dependencies = [
('conferences', '0015_auto_20200322_1904'),
("conferences", "0015_auto_20200322_1904"),
]

operations = [
migrations.AddField(
model_name='historicalconferenceproposalreviewer',
name='history_change_reason',
model_name="historicalconferenceproposalreviewer",
name="history_change_reason",
field=models.CharField(max_length=100, null=True),
),
migrations.AlterField(
model_name='historicalconferenceproposalreviewer',
name='created_by',
field=models.ForeignKey(blank=True, db_constraint=False, null=True, on_delete=django.db.models.deletion.DO_NOTHING, related_name='+', to=settings.AUTH_USER_MODEL, verbose_name='Created By'),
model_name="historicalconferenceproposalreviewer",
name="created_by",
field=models.ForeignKey(
blank=True,
db_constraint=False,
null=True,
on_delete=django.db.models.deletion.DO_NOTHING,
related_name="+",
to=settings.AUTH_USER_MODEL,
verbose_name="Created By",
),
),
migrations.AlterField(
model_name='historicalconferenceproposalreviewer',
name='modified_by',
field=models.ForeignKey(blank=True, db_constraint=False, null=True, on_delete=django.db.models.deletion.DO_NOTHING, related_name='+', to=settings.AUTH_USER_MODEL, verbose_name='Modified By'),
model_name="historicalconferenceproposalreviewer",
name="modified_by",
field=models.ForeignKey(
blank=True,
db_constraint=False,
null=True,
on_delete=django.db.models.deletion.DO_NOTHING,
related_name="+",
to=settings.AUTH_USER_MODEL,
verbose_name="Modified By",
),
),
]
2 changes: 1 addition & 1 deletion junction/devices/migrations/0001_initial.py
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@ class Migration(migrations.Migration):
auto_now=True, verbose_name="Last Modified At"
),
),
('uuid', models.UUIDField(max_length=32, unique=True, db_index=True)),
("uuid", models.UUIDField(max_length=32, unique=True, db_index=True)),
("is_verified", models.BooleanField(default=False)),
("verification_code", models.IntegerField()),
(
Expand Down
52 changes: 38 additions & 14 deletions junction/proposals/migrations/0027_auto_20200410_1926.py
Original file line number Diff line number Diff line change
Expand Up @@ -10,33 +10,57 @@
class Migration(migrations.Migration):

dependencies = [
('proposals', '0026_auto_20200323_2010'),
("proposals", "0026_auto_20200323_2010"),
]

operations = [
migrations.AddField(
model_name='historicalproposal',
name='history_change_reason',
model_name="historicalproposal",
name="history_change_reason",
field=models.CharField(max_length=100, null=True),
),
migrations.AddField(
model_name='historicalproposalsectionreviewervote',
name='history_change_reason',
model_name="historicalproposalsectionreviewervote",
name="history_change_reason",
field=models.CharField(max_length=100, null=True),
),
migrations.AlterField(
model_name='historicalproposal',
name='author',
field=models.ForeignKey(blank=True, db_constraint=False, null=True, on_delete=django.db.models.deletion.DO_NOTHING, related_name='+', to=settings.AUTH_USER_MODEL, verbose_name='Primary Speaker'),
model_name="historicalproposal",
name="author",
field=models.ForeignKey(
blank=True,
db_constraint=False,
null=True,
on_delete=django.db.models.deletion.DO_NOTHING,
related_name="+",
to=settings.AUTH_USER_MODEL,
verbose_name="Primary Speaker",
),
),
migrations.AlterField(
model_name='historicalproposal',
name='proposal_section',
field=models.ForeignKey(blank=True, db_constraint=False, null=True, on_delete=django.db.models.deletion.DO_NOTHING, related_name='+', to='proposals.ProposalSection', verbose_name='Proposal Section'),
model_name="historicalproposal",
name="proposal_section",
field=models.ForeignKey(
blank=True,
db_constraint=False,
null=True,
on_delete=django.db.models.deletion.DO_NOTHING,
related_name="+",
to="proposals.ProposalSection",
verbose_name="Proposal Section",
),
),
migrations.AlterField(
model_name='historicalproposal',
name='proposal_type',
field=models.ForeignKey(blank=True, db_constraint=False, null=True, on_delete=django.db.models.deletion.DO_NOTHING, related_name='+', to='proposals.ProposalType', verbose_name='Proposal Type'),
model_name="historicalproposal",
name="proposal_type",
field=models.ForeignKey(
blank=True,
db_constraint=False,
null=True,
on_delete=django.db.models.deletion.DO_NOTHING,
related_name="+",
to="proposals.ProposalType",
verbose_name="Proposal Type",
),
),
]
7 changes: 6 additions & 1 deletion junction/proposals/views.py
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,12 @@ class ProposalView(viewsets.ReadOnlyModelViewSet):
queryset = Proposal.objects.filter(status=2)
serializer_class = serializers.ProposalSerializer
filter_backend = (filters.DjangoFilterBackend,)
filterset_fields = ("conference", "review_status", "proposal_type", "proposal_section")
filterset_fields = (
"conference",
"review_status",
"proposal_type",
"proposal_section",
)

def get_queryset(self):
data = super(ProposalView, self).get_queryset()
Expand Down

0 comments on commit 035282b

Please sign in to comment.