Remove useless field in activities

This commit is contained in:
Yohann D'ANELLO 2020-04-02 15:43:41 +02:00
parent be42801709
commit 17ea2246ca
1 changed files with 1 additions and 12 deletions

View File

@ -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,