summaryrefslogtreecommitdiff
path: root/sublab_project/projects/admin.py
blob: e612bc43eb85b46233ee120915384c2a5bc5b881 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
from django.contrib import admin

from projects.models import Project


class ProjectAdmin(admin.ModelAdmin):
    prepopulated_fields = {'slug': ('name',)}
    list_display = ('name', 'date_created', 'date_updated')
    search_fields = ['name', 'description', 'contact_email', 'contact_url']


admin.site.register(Project, ProjectAdmin)