Add currency property to subevent

This commit is contained in:
Raphael Michel
2018-03-02 21:19:38 +01:00
parent 3955299983
commit 30123fd6ff

View File

@@ -656,6 +656,10 @@ class SubEvent(EventMixin, LoggedModel):
data.update({v.property.name: v.value for v in self.meta_values.select_related('property').all()})
return data
@property
def currency(self):
return self.event.currency
def allow_delete(self):
return self.event.subevents.count() > 1