from django.contrib import admin

from projects.models import Project, File


class ProjectAdmin(admin.ModelAdmin):
    prepopulated_fields = {'slug': ('name',)}


class FileAdmin(admin.ModelAdmin):
    pass


admin.site.register(Project, ProjectAdmin)
admin.site.register(File, FileAdmin)

from django.contrib import admin

from projects.models import Project, File


class ProjectAdmin(admin.ModelAdmin):
    prepopulated_fields = {'slug': ('name',)}
    list_display = ('name', 'repo_type', 'theme', 'status', 'whitelisted')


class FileAdmin(admin.ModelAdmin):
    pass


admin.site.register(Project, ProjectAdmin)
admin.site.register(File, FileAdmin)

Make happier project admin