class UserAdminPanel(admin.ModelAdmin):
inlines = (UserPlaylist, UserVideos, UserComment, UserReplays, )
list_per_page = 20
fieldsets = (
(None, {'fields': ('username', )}),
(_('Personal info'), {'fields': ('first_name', 'last_name',
'email')}),
(_('Permissions')
use this code for ManytoMany fields in django admin :
filter_horizontal = ('groups', 'user_permissions',)
On Fri, Nov 3, 2017 at 1:45 PM, Paul wrote:
> I have a Product model, an Image Model and a Category Model.
>
> A Product can have multiple Images(Foreign Key) and a Product can be in
> mult
I have a Product model, an Image Model and a Category Model.
A Product can have multiple Images(Foreign Key) and a Product can be in
multiple Categories a Category can contain multiple Products.
A Category can have multiple subcategories(key to itself).
class Category(MetaData):
parent =
3 matches
Mail list logo