membershipworks: Remove STATIC_URL prefix in LazyViteAssetUrl
This commit is contained in:
parent
efb15dd118
commit
ed3019bb92
@ -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(
|
||||
|
Loading…
Reference in New Issue
Block a user