Skip to content

Commit

Permalink
Merge pull request #71 from CapituloJaverianoACM/feature/70-attendee
Browse files Browse the repository at this point in the history
created Attendee and ActivityAttendee clasees
  • Loading branch information
camiloserr authored Jul 29, 2020
2 parents 61d828f + 6b53ab2 commit 8e84102
Showing 1 changed file with 13 additions and 0 deletions.
13 changes: 13 additions & 0 deletions acm_web_site/apps/business/activities/models.py
Original file line number Diff line number Diff line change
Expand Up @@ -95,3 +95,16 @@ class Tutorial(models.Model):

def __str__(self):
return '%s' % self.name


class Attendee(models.Model):
name = models.CharField(max_length=100)
email = models.EmailField(unique=True)

def __str__(self):
return '%s - %s' % (self.name, self.email)


class ActivityAttendee(models.Model):
activity = models.ForeignKey(Activity, on_delete=models.CASCADE)
attendee = models.ForeignKey(Attendee, on_delete=models.CASCADE)

0 comments on commit 8e84102

Please sign in to comment.