Compare commits
6 Commits
efb15dd118
...
66ceb1aae1
Author | SHA1 | Date | |
---|---|---|---|
66ceb1aae1 | |||
c31fea20ff | |||
5d98e300ea | |||
2cc6f9d2e0 | |||
7d5fd08855 | |||
7101e90f8f |
@ -1,5 +1,3 @@
|
||||
from dataclasses import dataclass
|
||||
|
||||
from django.contrib import admin
|
||||
from django.contrib.humanize.templatetags.humanize import naturaltime
|
||||
from django.http import HttpRequest
|
||||
@ -233,15 +231,8 @@ class EventAdmin(DjangoObjectActions, admin.ModelAdmin):
|
||||
]
|
||||
|
||||
class Media:
|
||||
@dataclass(frozen=True)
|
||||
class LazyViteAssetUrl(str):
|
||||
asset: str
|
||||
|
||||
def __str__(self) -> str:
|
||||
return vite_asset_url(self.asset)
|
||||
|
||||
js = [
|
||||
LazyViteAssetUrl(
|
||||
vite_asset_url(
|
||||
"membershipworks/js/event_meeting_time_admin_helper.entry.ts"
|
||||
)
|
||||
]
|
||||
@ -284,6 +275,7 @@ class EventAdmin(DjangoObjectActions, admin.ModelAdmin):
|
||||
ordering="meeting_times_match_event",
|
||||
)
|
||||
def meeting_times_match_event(self, obj) -> bool:
|
||||
print(obj.meeting_times_match_event)
|
||||
return obj.meeting_times_match_event
|
||||
|
||||
@admin.display(description="MembershipWorks links")
|
||||
|
Loading…
Reference in New Issue
Block a user