Skip to content

Instantly share code, notes, and snippets.

@daimon99
Last active September 5, 2019 04:54
Show Gist options
  • Save daimon99/3c46739e213b162bea940257534cb31e to your computer and use it in GitHub Desktop.
Save daimon99/3c46739e213b162bea940257534cb31e to your computer and use it in GitHub Desktop.
django manytomany 字段扁平展示
@admin.register(m.Article)
class ArticleAdmin(admin.ModelAdmin):
class Media:
css = {
'all': ('admin/css/articleadmin.css',)
}
.related-widget-wrapper>ul {
display: flex !important;
}
@daimon99
Copy link
Author

daimon99 commented Sep 5, 2019

屏幕快照 2019-09-05 下午12 16 52

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment