membershipworks: Remove STATIC_URL prefix in LazyViteAssetUrl
Some checks failed
Ruff / ruff (push) Has been cancelled
Test / test (push) Has been cancelled

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(