Skip to content
This repository has been archived by the owner on Feb 21, 2022. It is now read-only.

Commit

Permalink
feat(entities): register entity models in admin
Browse files Browse the repository at this point in the history
  • Loading branch information
jarosevcik committed Oct 1, 2021
1 parent d4a2ed0 commit 71e2ed5
Showing 1 changed file with 18 additions and 0 deletions.
18 changes: 18 additions & 0 deletions zoo/entities/admin.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
from django.contrib import admin

from . import models


@admin.register(models.Entity)
class EntityAdmin(admin.ModelAdmin):
search_fields = ("name", "owner", "kind", "type")


@admin.register(models.Link)
class LinkAdmin(admin.ModelAdmin):
search_fields = ("name",)


@admin.register(models.Group)
class GroupAdmin(admin.ModelAdmin):
search_fields = ("product_owner", "project_owner")

0 comments on commit 71e2ed5

Please sign in to comment.