from django.contrib import admin from .models import Message, Channel, Profile @admin.register(Channel) class ChannelAdmin(admin.ModelAdmin): list_display = ('title', 'desc') prepopulated_fields = {'slug':('title',) }