from django.contrib import admin

# Register your models here.
from django.apps import apps


class DynamicColumnAdmin(admin.ModelAdmin):
        def __init__(self, *args, **kwargs):
            super(DynamicColumnAdmin, self).__init__(*args, **kwargs)
            field_list = [i.name for i in self.model._meta.fields]
            all_fields = [i.name for i in self.model._meta.fields if not hasattr(i, 'remote_field') and not 'invalid_date' in i.error_messages]
            self.search_fields = all_fields
            self.list_display = field_list
            self.list_display_links = field_list

my_app = apps.get_app_config('user')

for model in list(my_app.get_models()):
       admin.site.register(model, DynamicColumnAdmin)
db70365323345ffb3293980dd6937db0f77ea435
<mask token>


class DynamicColumnAdmin(admin.ModelAdmin):

    def __init__(self, *args, **kwargs):
        super(DynamicColumnAdmin, self).__init__(*args, **kwargs)
        field_list = [i.name for i in self.model._meta.fields]
        all_fields = [i.name for i in self.model._meta.fields if not
            hasattr(i, 'remote_field') and not 'invalid_date' in i.
            error_messages]
        self.search_fields = all_fields
        self.list_display = field_list
        self.list_display_links = field_list


<mask token>

<mask token>


class DynamicColumnAdmin(admin.ModelAdmin):

    def __init__(self, *args, **kwargs):
        super(DynamicColumnAdmin, self).__init__(*args, **kwargs)
        field_list = [i.name for i in self.model._meta.fields]
        all_fields = [i.name for i in self.model._meta.fields if not
            hasattr(i, 'remote_field') and not 'invalid_date' in i.
            error_messages]
        self.search_fields = all_fields
        self.list_display = field_list
        self.list_display_links = field_list


<mask token>
for model in list(my_app.get_models()):
    admin.site.register(model, DynamicColumnAdmin)

<mask token>


class DynamicColumnAdmin(admin.ModelAdmin):

    def __init__(self, *args, **kwargs):
        super(DynamicColumnAdmin, self).__init__(*args, **kwargs)
        field_list = [i.name for i in self.model._meta.fields]
        all_fields = [i.name for i in self.model._meta.fields if not
            hasattr(i, 'remote_field') and not 'invalid_date' in i.
            error_messages]
        self.search_fields = all_fields
        self.list_display = field_list
        self.list_display_links = field_list


my_app = apps.get_app_config('user')
for model in list(my_app.get_models()):
    admin.site.register(model, DynamicColumnAdmin)

from django.contrib import admin
from django.apps import apps


class DynamicColumnAdmin(admin.ModelAdmin):

    def __init__(self, *args, **kwargs):
        super(DynamicColumnAdmin, self).__init__(*args, **kwargs)
        field_list = [i.name for i in self.model._meta.fields]
        all_fields = [i.name for i in self.model._meta.fields if not
            hasattr(i, 'remote_field') and not 'invalid_date' in i.
            error_messages]
        self.search_fields = all_fields
        self.list_display = field_list
        self.list_display_links = field_list


my_app = apps.get_app_config('user')
for model in list(my_app.get_models()):
    admin.site.register(model, DynamicColumnAdmin)

from django.contrib import admin

# Register your models here.
from django.apps import apps


class DynamicColumnAdmin(admin.ModelAdmin):
        def __init__(self, *args, **kwargs):
            super(DynamicColumnAdmin, self).__init__(*args, **kwargs)
            field_list = [i.name for i in self.model._meta.fields]
            all_fields = [i.name for i in self.model._meta.fields if not hasattr(i, 'remote_field') and not 'invalid_date' in i.error_messages]
            self.search_fields = all_fields
            self.list_display = field_list
            self.list_display_links = field_list

my_app = apps.get_app_config('user')

for model in list(my_app.get_models()):
       admin.site.register(model, DynamicColumnAdmin)