from django.contrib import admin
from .models import Attorney, Firm


class AttorneyAdmin(admin.ModelAdmin):
    prepopulated_fields = {"slug": ("name",)}
    list_display = (
        'pk',
        'number',
        'name',
        'email',
        'position',
        'status',
    )
    list_filter = ('status',)
    list_editable = (
        'number',
        'status',
    )


class FirmAdmin(admin.ModelAdmin):
    list_display = (
        'pk',
        # 'banner_image',
        'name',
        'phone',
        'email',
        'address',
        'working_hours',
    )

    list_editable = (
        'name',
        'phone',
        'email',
        'address',
        'working_hours',
    )


admin.site.register(Attorney, AttorneyAdmin)
admin.site.register(Firm, FirmAdmin)

b5e1908ddbf624e4918be7e4e044f2ed39bac1c5
<mask token>


class AttorneyAdmin(admin.ModelAdmin):
    <mask token>
    <mask token>
    <mask token>
    <mask token>


class FirmAdmin(admin.ModelAdmin):
    list_display = 'pk', 'name', 'phone', 'email', 'address', 'working_hours'
    list_editable = 'name', 'phone', 'email', 'address', 'working_hours'


<mask token>

<mask token>


class AttorneyAdmin(admin.ModelAdmin):
    prepopulated_fields = {'slug': ('name',)}
    list_display = 'pk', 'number', 'name', 'email', 'position', 'status'
    list_filter = 'status',
    list_editable = 'number', 'status'


class FirmAdmin(admin.ModelAdmin):
    list_display = 'pk', 'name', 'phone', 'email', 'address', 'working_hours'
    list_editable = 'name', 'phone', 'email', 'address', 'working_hours'


<mask token>

<mask token>


class AttorneyAdmin(admin.ModelAdmin):
    prepopulated_fields = {'slug': ('name',)}
    list_display = 'pk', 'number', 'name', 'email', 'position', 'status'
    list_filter = 'status',
    list_editable = 'number', 'status'


class FirmAdmin(admin.ModelAdmin):
    list_display = 'pk', 'name', 'phone', 'email', 'address', 'working_hours'
    list_editable = 'name', 'phone', 'email', 'address', 'working_hours'


admin.site.register(Attorney, AttorneyAdmin)
admin.site.register(Firm, FirmAdmin)

from django.contrib import admin
from .models import Attorney, Firm


class AttorneyAdmin(admin.ModelAdmin):
    prepopulated_fields = {'slug': ('name',)}
    list_display = 'pk', 'number', 'name', 'email', 'position', 'status'
    list_filter = 'status',
    list_editable = 'number', 'status'


class FirmAdmin(admin.ModelAdmin):
    list_display = 'pk', 'name', 'phone', 'email', 'address', 'working_hours'
    list_editable = 'name', 'phone', 'email', 'address', 'working_hours'


admin.site.register(Attorney, AttorneyAdmin)
admin.site.register(Firm, FirmAdmin)

from django.contrib import admin
from .models import Attorney, Firm


class AttorneyAdmin(admin.ModelAdmin):
    prepopulated_fields = {"slug": ("name",)}
    list_display = (
        'pk',
        'number',
        'name',
        'email',
        'position',
        'status',
    )
    list_filter = ('status',)
    list_editable = (
        'number',
        'status',
    )


class FirmAdmin(admin.ModelAdmin):
    list_display = (
        'pk',
        # 'banner_image',
        'name',
        'phone',
        'email',
        'address',
        'working_hours',
    )

    list_editable = (
        'name',
        'phone',
        'email',
        'address',
        'working_hours',
    )


admin.site.register(Attorney, AttorneyAdmin)
admin.site.register(Firm, FirmAdmin)
