Skip to content

Commit

Permalink
Merge pull request #1103 from lakridserne/feature/change_union_email_…
Browse files Browse the repository at this point in the history
…to_email

Ændre feltnavn fra union_email til email - nemmere udvikling
  • Loading branch information
rasmusselsmark authored Aug 31, 2024
2 parents cd45f10 + f6b5153 commit c35c6db
Show file tree
Hide file tree
Showing 4 changed files with 22 additions and 4 deletions.
4 changes: 2 additions & 2 deletions members/admin/union_admin.py
Original file line number Diff line number Diff line change
Expand Up @@ -83,7 +83,7 @@ class UnionAdmin(admin.ModelAdmin):
list_display = (
"union_link",
"address",
"union_email",
"email",
"founded_at",
"closed_at",
"waitinglist_count_link",
Expand Down Expand Up @@ -124,7 +124,7 @@ def get_queryset(self, request):
(
"Navn og Adresse",
{
"fields": ("name", "union_email", "address"),
"fields": ("name", "email", "address"),
"description": "<p>Udfyld navnet på foreningen (f.eks København, \
vestjylland) og adressen<p>",
},
Expand Down
18 changes: 18 additions & 0 deletions members/migrations/0055_rename_union_email_union_email.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
# Generated by Django 4.2.11 on 2024-08-31 11:39

from django.db import migrations


class Migration(migrations.Migration):

dependencies = [
("members", "0054_merge_20240617_2150"),
]

operations = [
migrations.RenameField(
model_name="union",
old_name="union_email",
new_name="email",
),
]
2 changes: 1 addition & 1 deletion members/models/union.py
Original file line number Diff line number Diff line change
Expand Up @@ -55,7 +55,7 @@ class Meta:
)
secretary_old = models.CharField("Sekretær", max_length=200, blank=True)
secretary_email_old = models.EmailField("Sekretærens email", blank=True)
union_email = models.EmailField("Foreningens email", blank=True)
email = models.EmailField("Foreningens email", blank=True)
statues = models.URLField("Link til gældende vedtægter", blank=True)
founded_at = models.DateField("Stiftet", blank=True, null=True)
closed_at = models.DateField(
Expand Down
2 changes: 1 addition & 1 deletion members/tests/factories/union_factory.py
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ class Meta:
cashier_email_old = Faker("email")
secretary_old = Faker("name")
secretary_email_old = Faker("email")
union_email = Faker("email")
email = Faker("email")
statues = Faker("url")
founded_at = Faker("date_time", tzinfo=TIMEZONE)
closed_at = Faker("date_time", tzinfo=TIMEZONE)
Expand Down

0 comments on commit c35c6db

Please sign in to comment.