from django.contrib import admin
from django_db_mixer import models


class FieldSettingsInLine(admin.StackedInline):
    model = models.FieldSetting
    extra = 0
    fields = ['name', 'mix_type', 'mix_setting']
    readonly_fields = ['name']


class ModelSettingsAdmin(admin.ModelAdmin):
    inlines = [FieldSettingsInLine]
    fields = ['name', 'priority']
    readonly_fields = ['name']
    ordering = ['priority']


admin.site.register(models.ModelSetting, ModelSettingsAdmin)

cac5ba626ec629c1ca02e108b89b56d4d122c70c
<mask token>


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


<mask token>

<mask token>


class FieldSettingsInLine(admin.StackedInline):
    model = models.FieldSetting
    extra = 0
    fields = ['name', 'mix_type', 'mix_setting']
    readonly_fields = ['name']


class ModelSettingsAdmin(admin.ModelAdmin):
    inlines = [FieldSettingsInLine]
    fields = ['name', 'priority']
    readonly_fields = ['name']
    ordering = ['priority']


<mask token>

<mask token>


class FieldSettingsInLine(admin.StackedInline):
    model = models.FieldSetting
    extra = 0
    fields = ['name', 'mix_type', 'mix_setting']
    readonly_fields = ['name']


class ModelSettingsAdmin(admin.ModelAdmin):
    inlines = [FieldSettingsInLine]
    fields = ['name', 'priority']
    readonly_fields = ['name']
    ordering = ['priority']


admin.site.register(models.ModelSetting, ModelSettingsAdmin)

from django.contrib import admin
from django_db_mixer import models


class FieldSettingsInLine(admin.StackedInline):
    model = models.FieldSetting
    extra = 0
    fields = ['name', 'mix_type', 'mix_setting']
    readonly_fields = ['name']


class ModelSettingsAdmin(admin.ModelAdmin):
    inlines = [FieldSettingsInLine]
    fields = ['name', 'priority']
    readonly_fields = ['name']
    ordering = ['priority']


admin.site.register(models.ModelSetting, ModelSettingsAdmin)
