add event mail addresses to the /events endpoints
This commit is contained in:
parent
f94e2d8191
commit
413a18a5d0
10 changed files with 90 additions and 13 deletions
|
@ -31,7 +31,7 @@ class Email(SoftDeleteModel):
|
|||
|
||||
class EventAddress(models.Model):
|
||||
id = models.AutoField(primary_key=True)
|
||||
event = models.ForeignKey(Event, models.SET_NULL, null=True)
|
||||
event = models.ForeignKey(Event, models.SET_NULL, null=True, related_name='addresses')
|
||||
address = models.CharField(max_length=255)
|
||||
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue