Re: ManytoMany field in Django admin not appearing

2017-11-05 Thread mohammad k
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')

Re: ManytoMany field in Django admin not appearing

2017-11-05 Thread mohammad k
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

ManytoMany field in Django admin not appearing

2017-11-03 Thread Paul
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 =