membershipworks: Ignore deletions of related EventExt in View Models
This commit is contained in:
parent
996331c7a0
commit
cd054bd716
@ -762,7 +762,7 @@ class EventTicketType(DBView):
|
|||||||
objects = EventTicketTypeManager.from_queryset(EventTicketTypeQuerySet)()
|
objects = EventTicketTypeManager.from_queryset(EventTicketTypeQuerySet)()
|
||||||
|
|
||||||
event = models.ForeignKey(
|
event = models.ForeignKey(
|
||||||
EventExt, on_delete=models.CASCADE, related_name="ticket_types"
|
EventExt, on_delete=models.DO_NOTHING, related_name="ticket_types"
|
||||||
)
|
)
|
||||||
label = models.TextField()
|
label = models.TextField()
|
||||||
restrict_to = models.TextField(null=True, blank=True)
|
restrict_to = models.TextField(null=True, blank=True)
|
||||||
@ -807,7 +807,7 @@ class EventTicketType(DBView):
|
|||||||
|
|
||||||
class EventAttendeeStats(DBView):
|
class EventAttendeeStats(DBView):
|
||||||
event = models.ForeignKey(
|
event = models.ForeignKey(
|
||||||
EventExt, on_delete=models.CASCADE, related_name="attendee_stats"
|
EventExt, on_delete=models.DO_NOTHING, related_name="attendee_stats"
|
||||||
)
|
)
|
||||||
gross_revenue = models.FloatField()
|
gross_revenue = models.FloatField()
|
||||||
|
|
||||||
@ -827,7 +827,7 @@ class EventAttendeeStats(DBView):
|
|||||||
|
|
||||||
class EventAttendee(DBView):
|
class EventAttendee(DBView):
|
||||||
event = models.ForeignKey(
|
event = models.ForeignKey(
|
||||||
EventExt, on_delete=models.CASCADE, related_name="attendees"
|
EventExt, on_delete=models.DO_NOTHING, related_name="attendees"
|
||||||
)
|
)
|
||||||
uid = models.ForeignKey(Member, on_delete=models.DO_NOTHING)
|
uid = models.ForeignKey(Member, on_delete=models.DO_NOTHING)
|
||||||
name = models.CharField(max_length=256)
|
name = models.CharField(max_length=256)
|
||||||
|
Loading…
Reference in New Issue
Block a user