-
Notifications
You must be signed in to change notification settings - Fork 30
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge branch 'master' into 867-feature-tilføj-regions-dropdown-i-admi…
…n-delen-under-oprettelse-af-aktiviteter
- Loading branch information
Showing
13 changed files
with
294 additions
and
99 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,12 @@ | ||
from django.core.management.base import BaseCommand | ||
from members.models.activityinvite import ActivityInvite | ||
|
||
|
||
class Command(BaseCommand): | ||
help = "This command populates the price in dkk for the activity invites based on the activities if no note has been made. This is due to wrong code" | ||
|
||
def handle(self, *args, **options): | ||
for activityInvite in ActivityInvite.objects.all(): | ||
if activityInvite.price_note == "": | ||
activityInvite.price_in_dkk = activityInvite.activity.price_in_dkk | ||
activityInvite.save() |
30 changes: 30 additions & 0 deletions
30
members/migrations/0044_activityinvite_price_in_dkk_and_more.py
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,30 @@ | ||
# Generated by Django 4.2.3 on 2023-11-19 13:46 | ||
|
||
from django.db import migrations, models | ||
|
||
|
||
class Migration(migrations.Migration): | ||
dependencies = [ | ||
("members", "0043_alter_union_name"), | ||
] | ||
|
||
operations = [ | ||
migrations.AddField( | ||
model_name="activityinvite", | ||
name="price_in_dkk", | ||
field=models.DecimalField( | ||
blank=True, | ||
decimal_places=2, | ||
default=500, | ||
help_text="Hvis det er et forløb / en sæsonaktivitet fratrækkes der automatisk 100 kr. til Coding Pirates Denmark pr. deltager. Denne pris overskriver prisen på aktiviteten. Angiv kun en pris hvis denne deltager skal have en anden pris end angivet i aktiviteten. Hvis prisen er under 100 kr. for et forløb / en sæsonaktivitet bliver barnet ikke medlem af foreningen og har ikke stemmeret til generalforsamlingen. Hvis der angives en anden pris, skal noten udfyldes med en begrundelse for denne prisoverskrivelse. Denne note er synlig for den inviterede deltager.", | ||
max_digits=10, | ||
null=True, | ||
verbose_name="Pris", | ||
), | ||
), | ||
migrations.AddField( | ||
model_name="activityinvite", | ||
name="price_note", | ||
field=models.TextField(blank=True, verbose_name="Note om særpris"), | ||
), | ||
] |
29 changes: 29 additions & 0 deletions
29
members/migrations/0045_activityinvite_extra_email_info_and_more.py
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,29 @@ | ||
# Generated by Django 4.2.3 on 2024-03-02 17:00 | ||
|
||
from django.db import migrations, models | ||
|
||
|
||
class Migration(migrations.Migration): | ||
dependencies = [ | ||
("members", "0044_activityinvite_price_in_dkk_and_more"), | ||
] | ||
|
||
operations = [ | ||
migrations.AddField( | ||
model_name="activityinvite", | ||
name="extra_email_info", | ||
field=models.TextField(blank=True, verbose_name="Ekstra email info"), | ||
), | ||
migrations.AlterField( | ||
model_name="activityinvite", | ||
name="price_in_dkk", | ||
field=models.DecimalField( | ||
blank=True, | ||
decimal_places=2, | ||
help_text="Hvis det er et forløb / en sæsonaktivitet fratrækkes der automatisk 100 kr. til Coding Pirates Denmark pr. deltager. Denne pris overskriver prisen på aktiviteten. Angiv kun en pris hvis denne deltager skal have en anden pris end angivet i aktiviteten. Hvis prisen er under 100 kr. for et forløb / en sæsonaktivitet bliver barnet ikke medlem af foreningen og har ikke stemmeret til generalforsamlingen. Hvis der angives en anden pris, skal noten udfyldes med en begrundelse for denne prisoverskrivelse. Denne note er synlig for den inviterede deltager.", | ||
max_digits=10, | ||
null=True, | ||
verbose_name="Pris", | ||
), | ||
), | ||
] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.