Source

cmsplugin-news / cmsplugin_news / admin.py

Diff from to

File cmsplugin_news/admin.py

 from django.http import HttpResponse
 from django.core import serializers
 
-
+from cmsplugin_news.forms import NewsForm
 from cmsplugin_news.models import News
     
 class NewsAdmin(admin.ModelAdmin):
     list_filter = ('is_published', )
     search_fields = ['title', 'content']
     prepopulated_fields = {'slug': ('title',)}
+    form = NewsForm
     
     actions = ['make_published', 'make_unpublished']