Skip to content

Commit

Permalink
Allow blank assignees when editing ticket
Browse files Browse the repository at this point in the history
  • Loading branch information
zecookiez committed Sep 13, 2020
1 parent 5122c10 commit c15ceb8
Show file tree
Hide file tree
Showing 2 changed files with 20 additions and 1 deletion.
18 changes: 18 additions & 0 deletions judge/migrations/0111_blank_assignees_ticket.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
# Generated by Django 2.2.15 on 2020-09-13 16:05

from django.db import migrations, models


class Migration(migrations.Migration):

dependencies = [
('judge', '0110_default_output_prefix_override'),
]

operations = [
migrations.AlterField(
model_name='ticket',
name='assignees',
field=models.ManyToManyField(blank=True, related_name='assigned_tickets', to='judge.Profile', verbose_name='assignees'),
),
]
3 changes: 2 additions & 1 deletion judge/models/ticket.py
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,8 @@ class Ticket(models.Model):
user = models.ForeignKey(Profile, verbose_name=_('ticket creator'), related_name='tickets',
on_delete=models.CASCADE)
time = models.DateTimeField(verbose_name=_('creation time'), auto_now_add=True)
assignees = models.ManyToManyField(Profile, verbose_name=_('assignees'), related_name='assigned_tickets')
assignees = models.ManyToManyField(Profile, verbose_name=_('assignees'), related_name='assigned_tickets',
blank=True)
notes = models.TextField(verbose_name=_('quick notes'), blank=True,
help_text=_('Staff notes for this issue to aid in processing.'))
content_type = models.ForeignKey(ContentType, verbose_name=_('linked item type'),
Expand Down

0 comments on commit c15ceb8

Please # to comment.