move apps to own dir
This commit is contained in:
parent
7b23537ce1
commit
fd9b9c34c7
29 changed files with 4 additions and 0 deletions
|
|
@ -1,33 +0,0 @@
|
|||
# -*- mode: python; coding: utf-8 -*-
|
||||
# Copyright (C) 2018-2019 by BDE ENS Paris-Saclay
|
||||
# SPDX-License-Identifier: GPL-3.0-or-later
|
||||
|
||||
from django.contrib import admin
|
||||
|
||||
from .models import Activity, ActivityType, Guest
|
||||
|
||||
|
||||
class ActivityAdmin(admin.ModelAdmin):
|
||||
"""
|
||||
Admin customisation for Activity
|
||||
"""
|
||||
list_display = ('name', 'activity_type', 'organizer')
|
||||
list_filter = ('activity_type',)
|
||||
search_fields = ['name', 'organizer__name']
|
||||
|
||||
# Organize activities by start date
|
||||
date_hierarchy = 'date_start'
|
||||
ordering = ['-date_start']
|
||||
|
||||
|
||||
class ActivityTypeAdmin(admin.ModelAdmin):
|
||||
"""
|
||||
Admin customisation for ActivityType
|
||||
"""
|
||||
list_display = ('name', 'can_invite', 'guest_entry_fee')
|
||||
|
||||
|
||||
# Register your models here.
|
||||
admin.site.register(Activity, ActivityAdmin)
|
||||
admin.site.register(ActivityType, ActivityTypeAdmin)
|
||||
admin.site.register(Guest)
|
||||
Loading…
Add table
Add a link
Reference in a new issue