Skip to content
Snippets Groups Projects
Verified Commit e662eeed authored by Ernesto Rico Schmidt's avatar Ernesto Rico Schmidt
Browse files

feat: add Host admin

parent 485cbe0d
No related branches found
No related tags found
No related merge requests found
......@@ -4,6 +4,7 @@ from django.contrib.auth.models import User
from program.models import (
Category,
FundingCategory,
Host,
Language,
LicenseType,
LinkType,
......@@ -25,6 +26,14 @@ class AdminWithNameType(admin.ModelAdmin):
list_display = ("name", "type")
@admin.register(Host)
class HostAdmin(admin.ModelAdmin):
fields = ("name", "email", "biography", "created_at", "created_by", "updated_at", "updated_by")
list_display = ("name",)
readonly_fields = ("created_at", "created_by", "updated_at", "updated_by")
search_fields = ("name",)
@admin.register(Language)
class LanguageAdmin(admin.ModelAdmin):
list_display = ("name", "is_active")
......@@ -78,4 +87,3 @@ class UserProfileUserAdmin(UserAdmin):
admin.site.unregister(User)
admin.site.register(User, UserProfileUserAdmin)
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment