[Fix] Frontend Testing Fixtures (#249)

Co-authored-by: Tim Lorsbach <tim@lorsba.ch>
Co-authored-by: Liam Brydon <lbry121@aucklanduni.ac.nz>
Reviewed-on: enviPath/enviPy#249
This commit is contained in:
2025-12-03 10:49:23 +13:00
parent 901de4640c
commit d6440f416c
5 changed files with 214 additions and 97 deletions

View File

@ -24,7 +24,6 @@ class Command(BaseCommand):
def handle(self, *args, **options):
Package = s.GET_PACKAGE_MODEL()
print("Localizing urls for Package")
Package.objects.update(url=Replace(F("url"), Value(options["old"]), Value(options["new"])))
MODELS = [
@ -50,7 +49,6 @@ class Command(BaseCommand):
]
for model in MODELS:
obj_cls = apps.get_model("epdb", model)
print(f"Localizing urls for {model}")
obj_cls.objects.update(
url=Replace(F("url"), Value(options["old"]), Value(options["new"]))
)