change Club.unix_name to Club.slug_name and remove it from forms

This commit is contained in:
imperosol
2025-03-01 11:47:40 +01:00
parent f764ce1585
commit 805b146f17
21 changed files with 377 additions and 395 deletions

View File

@ -18,6 +18,7 @@ from django.conf import settings
from django.test import TestCase
from django.urls import reverse
from django.utils.timezone import localtime, now
from model_bakery import baker
from club.models import Club
from core.models import Group, User
@ -29,7 +30,7 @@ from subscription.models import Subscription
class TestMergeUser(TestCase):
@classmethod
def setUpTestData(cls):
cls.ae = Club.objects.get(unix_name="ae")
cls.club = baker.make(Club)
cls.eboutic = Counter.objects.get(name="Eboutic")
cls.barbar = Product.objects.get(code="BARB")
cls.barbar.selling_price = 2
@ -107,7 +108,7 @@ class TestMergeUser(TestCase):
Selling(
label="barbar",
counter=self.eboutic,
club=self.ae,
club=self.club,
product=self.barbar,
customer=self.to_keep.customer,
seller=self.root,
@ -118,7 +119,7 @@ class TestMergeUser(TestCase):
Selling(
label="barbar",
counter=self.eboutic,
club=self.ae,
club=self.club,
product=self.barbar,
customer=self.to_delete.customer,
seller=self.root,
@ -190,7 +191,7 @@ class TestMergeUser(TestCase):
Selling(
label="barbar",
counter=self.eboutic,
club=self.ae,
club=self.club,
product=self.barbar,
customer=self.to_delete.customer,
seller=self.root,
@ -218,7 +219,7 @@ class TestMergeUser(TestCase):
Selling(
label="barbar",
counter=self.eboutic,
club=self.ae,
club=self.club,
product=self.barbar,
customer=self.to_keep.customer,
seller=self.root,