12 lines
318 B
Python
12 lines
318 B
Python
# -*- coding: utf-8 -*-
|
|
from django.contrib import admin
|
|
from django.contrib.auth.admin import UserAdmin
|
|
|
|
from apps.events.models.model_events import Event
|
|
|
|
|
|
@admin.register(Event)
|
|
class EventAdmin(admin.ModelAdmin):
|
|
list_display = ('date_time','user','section','level_event')
|
|
search_fields = ('user__name',)
|