You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
22 lines
485 B
22 lines
485 B
from django.contrib import admin
|
|
|
|
# Register your models here.
|
|
from hpst.models import Termin
|
|
from hpst.models import Kontakt
|
|
|
|
class TerminAdmin(admin.ModelAdmin):
|
|
list_display = ['titel', 'date','preis']
|
|
ordering = ['-date']
|
|
actions = []
|
|
save_as = True
|
|
|
|
admin.site.register(Termin,TerminAdmin)
|
|
|
|
class KontaktAdmin(admin.ModelAdmin):
|
|
list_display = ['subject','email', 'datum']
|
|
ordering = ['datum']
|
|
actions = []
|
|
|
|
|
|
|
|
admin.site.register(Kontakt,KontaktAdmin)
|
|
|