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)