darklow / django-suit

Modern theme for Django admin interface
http://djangosuit.com/
Other
2.31k stars 701 forks source link

v2 suit tabs not working #779

Closed aquinary closed 3 years ago

aquinary commented 3 years ago
@admin.register(PostModel)
class PostAdmin(admin.ModelAdmin):
    list_display = ('id', 'category', 'slug', 'title', 'description')
    list_editable = ('category', 'slug', 'title')
    prepopulated_fields = {"slug": ("title",)}
    form = PostAdminForm
    fieldsets = [
        (None, {
            'classes': ('suit-tab suit-tab-general',),
            'fields': ['slug', 'title',]
        }),
        (None, {
            'classes': ('suit-tab suit-tab-description',),
            'fields': ['description',]
        }),
    ]

    suit_from_tabs = (
        ('general', 'General'),
        ('description', 'Description'),
    )

image image

aquinary commented 3 years ago

I did the installation using the PyCharm package manager But if you do it manually using pip install https://github.com/darklow/django-suit/tarball/v2 Then the error disappears. I apologize for the false call!