[Fixed]-Showing a field of type list in django admin

1👍

create a function to define language more effectively to django.. and than use it in list_display.

from django.contrib import admin
from .models import Newspapers

class NewspaperAdmin(admin.ModelAdmin):

    list_display = ('id','get_languages','title','price')

    def get_languages(self, obj):
       return ",".join([l for l in obj.language])

Leave a comment