Skip to content

Commit 0758df7

Browse files
author
Kishore kumar J
committed
Changed Participant-Event to be optional
1 parent 5c5b230 commit 0758df7

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

participantsprofile/models.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@ class Participant(models.Model):
2424

2525
college = models.ForeignKey(College, related_name='participants')
2626
roll_no = models.CharField(max_length=8)
27-
events = models.ManyToManyField(Event)
27+
events = models.ManyToManyField(Event, null=True, blank=True)
2828
class Meta:
2929
ordering = ('college',)
3030
def __unicode__(self):

0 commit comments

Comments
 (0)