forked from erp-dev/erp
feat: added user profile model & api & admin, it uses by found user with merchant
This commit is contained in:
@@ -38,6 +38,11 @@ class QuickInputAdmin(admin.ModelAdmin):
|
||||
list_filter = ('group',)
|
||||
|
||||
|
||||
@admin.register(models.UserProfile)
|
||||
class UserProfileAdmin(AdminBase):
|
||||
list_display = ('user', 'merchant')
|
||||
|
||||
|
||||
@admin.register(models.Merchant)
|
||||
class MerchantAdmin(admin.ModelAdmin):
|
||||
list_display = ('name', 'type', 'email', 'mobile', 'auto_complete_stock_change')
|
||||
|
||||
Reference in New Issue
Block a user