Commit 7d6da424 authored by Guilhem Saurel's avatar Guilhem Saurel
Browse files

admin: show robotpkgs in project

parent 94b9ee54
Pipeline #6830 passed with stage
in 57 seconds
from django.contrib.admin import ModelAdmin, site
from django.contrib.admin import ModelAdmin, TabularInline, site
from . import models
class RobotpkgInline(TabularInline):
model = models.Robotpkg
class ContributorAdmin(ModelAdmin):
def get_queryset(self, request):
return super().get_queryset(request).gepettist().distinct()
......@@ -14,6 +18,7 @@ class DependencyAdmin(ModelAdmin):
class ProjectAdmin(ModelAdmin):
search_fields = ('name', 'slug')
inlines = [RobotpkgInline]
site.register(models.Contributor, ContributorAdmin)
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment