25 lines
625 B
Python
25 lines
625 B
Python
# -*- coding: utf-8 -*-
|
|
#
|
|
# ITerativ GmbH
|
|
# http://www.iterativ.ch/
|
|
#
|
|
# Copyright (c) 2019 ITerativ GmbH. All rights reserved.
|
|
#
|
|
# Created on 2019-10-10
|
|
# @author: chrigu <christian.cueni@iterativ.ch>
|
|
from django.contrib import admin
|
|
|
|
from registration.models import LicenseType, License
|
|
|
|
|
|
@admin.register(LicenseType)
|
|
class LicenseTypeAdmin(admin.ModelAdmin):
|
|
list_display = ('id', 'name', 'key', 'for_role', 'active')
|
|
list_filter = ('for_role', 'active')
|
|
|
|
|
|
@admin.register(License)
|
|
class LicenseAdmin(admin.ModelAdmin):
|
|
list_display = ('license_type', 'licensee')
|
|
list_filter = ('license_type', 'licensee')
|