[Fixed]-Django Admin shows primary key column twice

1👍

You can try remove first column ‘link’ to edit page.
Like this:

class table_nameAdmin(admin.ModelAdmin):
    list_display = ['field1','field2',]
    list_editable = ['field1','field2',]
    search_fields = ['field1',]
    ordering = ('field2',)
    list_per_page = records_Per_Page

    def __init__(self, *args, **kwargs):
        super(table_nameAdmin, self).__init__(*args, **kwargs)
        self.list_display_links = (None, )

Leave a comment