foerderbarometer/input/admin.py

25 lines
706 B
Python
Raw Normal View History

2020-09-21 14:27:16 +02:00
from django.contrib import admin
# Register your models here.
2020-09-30 14:17:38 +02:00
from .models import Project, HonoraryCertificate, Library, IFG #, ELitStip
2020-09-22 12:21:05 +02:00
2020-10-06 14:55:46 +02:00
# @admin.register(Project)
# class ProjectAdmin(admin.ModelAdmin):
# #fields = ('pid',)
# readonly_fields = ('pid',)
# # list_display =('pid',)
# def __init__(self, *args, **kwargs):
# super().__init__(*args, **kwargs)
# self.fields = super().get_all_field_names() + 'pid'
# return self
2020-10-06 13:17:28 +02:00
@admin.register(Project)
class ProjectAdmin(admin.ModelAdmin):
readonly_fields = ('pid',)
2020-10-06 14:55:46 +02:00
admin.site.register([
HonoraryCertificate,
2020-09-30 14:17:38 +02:00
Library,
IFG,
])