We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 671208e commit 79c3d96Copy full SHA for 79c3d96
1 file changed
events/admin.py
@@ -279,13 +279,15 @@ class EventAdmin(admin.ModelAdmin):
279
raw_id_fields = ("place", "created_by", "sponsors")
280
list_display = (
281
"__str__",
282
+ "access",
283
"open_link",
284
"attendee_count",
285
"start_time",
286
"created_by",
287
"created_time",
288
)
289
list_filter = (
290
+ "team__access",
291
292
293
countFilter("attendee"),
@@ -321,6 +323,9 @@ def open_link(self, event):
321
323
322
324
open_link.short_description = "Link"
325
326
+ def access(self, event):
327
+ return Team.TYPES[event.team.access][1]
328
+
329
330
admin.site.register(Event, EventAdmin)
331
0 commit comments