mirror of
https://gitlab.crans.org/bde/nk20
synced 2024-11-26 18:37:12 +00:00
Remove useless field in activities
This commit is contained in:
parent
be42801709
commit
17ea2246ca
@ -73,15 +73,6 @@ class Activity(models.Model):
|
|||||||
verbose_name=_('organizer'),
|
verbose_name=_('organizer'),
|
||||||
)
|
)
|
||||||
|
|
||||||
note = models.ForeignKey(
|
|
||||||
'note.Note',
|
|
||||||
on_delete=models.PROTECT,
|
|
||||||
blank=True,
|
|
||||||
null=True,
|
|
||||||
related_name='+',
|
|
||||||
verbose_name=_('note'),
|
|
||||||
)
|
|
||||||
|
|
||||||
attendees_club = models.ForeignKey(
|
attendees_club = models.ForeignKey(
|
||||||
'member.Club',
|
'member.Club',
|
||||||
on_delete=models.PROTECT,
|
on_delete=models.PROTECT,
|
||||||
@ -160,9 +151,7 @@ class Entry(models.Model):
|
|||||||
if insert and self.guest:
|
if insert and self.guest:
|
||||||
GuestTransaction.objects.create(
|
GuestTransaction.objects.create(
|
||||||
source=self.note,
|
source=self.note,
|
||||||
source_alias=self.note.user.username,
|
destination=self.activity.organizer.note,
|
||||||
destination=self.note,
|
|
||||||
destination_alias=self.activity.organizer.name,
|
|
||||||
quantity=1,
|
quantity=1,
|
||||||
amount=self.activity.activity_type.guest_entry_fee,
|
amount=self.activity.activity_type.guest_entry_fee,
|
||||||
reason="Invitation " + self.activity.name + " " + self.guest.first_name + " " + self.guest.last_name,
|
reason="Invitation " + self.activity.name + " " + self.guest.first_name + " " + self.guest.last_name,
|
||||||
|
Loading…
Reference in New Issue
Block a user