reverend
547179b0ca
commit 97b044cafb7f17f23b3b1beedcf70af209a60ddc Author: reverend <reverend@reverend2048.de> Date: Mon Sep 14 17:25:40 2020 +0200 Updating gitignore commit 4891d80486e1f95db8ae66385c7c97426a3ca1a4 Author: reverend <reverend@reverend2048.de> Date: Mon Sep 14 17:25:20 2020 +0200 Updating Readme commit f05c43abbdc7eb30896ad6d10fe80fd6483338d9 Author: reverend <reverend@reverend2048.de> Date: Mon Sep 14 17:23:30 2020 +0200 Renaming Module commit fd5ad2ee9f8cbacd565da45b257928192ffc651c Author: reverend <reverend@reverend2048.de> Date: Mon Sep 14 17:23:16 2020 +0200 Renaming module references commit 828a0dd5dd73723b84b77908497903ed26b6966b Author: reverend <reverend@reverend2048.de> Date: Mon Sep 14 17:21:20 2020 +0200 Renaming Project
24 lines
666 B
Python
24 lines
666 B
Python
#!/usr/bin/env python
|
|
# -*- coding: utf-8 -*-
|
|
|
|
''' Classes and modules for the administrative backend. '''
|
|
|
|
from django.contrib import admin
|
|
from django.contrib.auth import get_user_model
|
|
from django.contrib.auth.admin import UserAdmin
|
|
from lostplaces.models import *
|
|
|
|
from lostplaces.forms import ExplorerCreationForm, ExplorerChangeForm
|
|
|
|
# Register your models here.
|
|
|
|
class VoucherAdmin(admin.ModelAdmin):
|
|
fields = ['code', 'expires_when', 'created_when']
|
|
readonly_fields = ['created_when']
|
|
|
|
admin.site.register(Explorer)
|
|
admin.site.register(Voucher, VoucherAdmin)
|
|
admin.site.register(Place)
|
|
admin.site.register(PlaceImage)
|
|
admin.site.register(PhotoAlbum)
|