BO 1.12.1 tutorials steps edit list fields
This commit is contained in:
@@ -5,16 +5,17 @@ from ..models.tutorial import TutorialTranslation, Tutorial, TutorialSteps
|
||||
|
||||
class TranslationTutorialInline(admin.TabularInline):
|
||||
model = TutorialTranslation
|
||||
fields = ('language_code', 'tutorial_text', 'error_text')
|
||||
fields = ('language_code', 'tutorial_text')
|
||||
extra = 0
|
||||
|
||||
|
||||
class TutorialStepsAdmin(admin.ModelAdmin):
|
||||
list_display = ('tutorial_step_id', 'tutorial', 'check_text', 'step', 'parent', 'branch')
|
||||
list_display = ('tutorial_step_id', 'tutorial', 'check_text', 'step', 'direction', 'parent_id', 'branch')
|
||||
list_filter = ('tutorial__name',)
|
||||
fields = ('tutorial', 'step', "tutorial_text", "check_text", "direction", "condition", 'get_parent_step', 'branch', "action")
|
||||
list_editable = ('parent',)
|
||||
readonly_fields = ('get_parent_step',)
|
||||
fields = ('tutorial', 'step', "tutorial_text", "check_text", "direction", "condition", 'parent_id', 'branch'
|
||||
, "action")
|
||||
list_editable = ('step','direction', 'parent_id','branch')
|
||||
ordering = ('tutorial_step_id',)
|
||||
|
||||
def copy_attributes(self, request, queryset):
|
||||
for objectAttr in reversed(queryset):
|
||||
|
||||
Reference in New Issue
Block a user