membershipworks: Remove STATIC_URL prefix in LazyViteAssetUrl
All checks were successful
Ruff / ruff (push) Successful in 2m36s
Test / test (push) Successful in 11m45s

This commit is contained in:
Adam Goldsmith 2024-09-09 22:42:26 -04:00
parent efb15dd118
commit ed3019bb92

View File

@ -1,5 +1,6 @@
from dataclasses import dataclass
from django.conf import settings
from django.contrib import admin
from django.contrib.humanize.templatetags.humanize import naturaltime
from django.http import HttpRequest
@ -238,7 +239,7 @@ class EventAdmin(DjangoObjectActions, admin.ModelAdmin):
asset: str
def __str__(self) -> str:
return vite_asset_url(self.asset)
return vite_asset_url(self.asset).removeprefix(settings.STATIC_URL)
js = [
LazyViteAssetUrl(