Skip to content

Commit

Permalink
refactor: Make team submissions optional in Django admin (#145)
Browse files Browse the repository at this point in the history
* chore: add vscode .gitignore

* feat: make team submission optional for submission

* chore: bump version to 3.4.1
  • Loading branch information
nsprenkle authored Nov 12, 2021
1 parent d1a78ca commit 7b64ffc
Show file tree
Hide file tree
Showing 4 changed files with 30 additions and 1 deletion.
3 changes: 3 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -60,3 +60,6 @@ test.txt.tmp

# Pycharm
.idea/

# VSCode
.vscode
2 changes: 1 addition & 1 deletion submissions/__init__.py
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
""" API for creating submissions and scores. """
__version__ = '3.4.0'
__version__ = '3.4.1'
25 changes: 25 additions & 0 deletions submissions/migrations/0002_team_submission_optional.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,25 @@
# Generated by Django 3.2.9 on 2021-11-10 22:08

import django.db.models.deletion
from django.db import migrations, models


class Migration(migrations.Migration):

dependencies = [
('submissions', '0001_squashed_0005_CreateTeamModel'),
]

operations = [
migrations.AlterField(
model_name='submission',
name='team_submission',
field=models.ForeignKey(
blank=True,
null=True,
on_delete=django.db.models.deletion.SET_NULL,
related_name='submissions',
to='submissions.teamsubmission',
),
),
]
1 change: 1 addition & 0 deletions submissions/models.py
Original file line number Diff line number Diff line change
Expand Up @@ -332,6 +332,7 @@ class Submission(models.Model):
TeamSubmission,
related_name='submissions',
null=True,
blank=True,
db_index=True,
on_delete=models.SET_NULL
)
Expand Down

0 comments on commit 7b64ffc

Please sign in to comment.