Skip to content

Commit

Permalink
Adding in wizard slots.
Browse files Browse the repository at this point in the history
  • Loading branch information
augustjohnson committed Dec 20, 2024
1 parent 928a69f commit 6598bbf
Show file tree
Hide file tree
Showing 3 changed files with 3,709 additions and 2,639 deletions.
10 changes: 9 additions & 1 deletion api_v2/admin.py
Original file line number Diff line number Diff line change
Expand Up @@ -34,6 +34,14 @@ class RaceAdmin(admin.ModelAdmin):
RaceTraitInline,
]

class ClassFeatureItemInline(admin.TabularInline):
model = ClassFeatureItem

class ClassFeatureAdmin(admin.ModelAdmin):
inlines = [
ClassFeatureItemInline
]


class BackgroundBenefitInline(admin.TabularInline):
model = BackgroundBenefit
Expand Down Expand Up @@ -93,7 +101,7 @@ class LanguageAdmin(admin.ModelAdmin):
admin.site.register(Condition)

admin.site.register(ClassFeatureItem)
admin.site.register(ClassFeature)
admin.site.register(ClassFeature, admin_class=ClassFeatureAdmin)
admin.site.register(CharacterClass)

admin.site.register(Environment)
Expand Down
Loading

0 comments on commit 6598bbf

Please sign in to comment.