Skip to content

Commit

Permalink
Add autcomplete field in CouponUserInline
Browse files Browse the repository at this point in the history
  • Loading branch information
Jerome-Celle authored and RignonNoel committed Feb 18, 2020
1 parent 36c80b8 commit ad27abd
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions store/admin.py
Original file line number Diff line number Diff line change
Expand Up @@ -162,6 +162,8 @@ class CouponUserInline(admin.StackedInline):
fk_name = 'coupon'
extra = 0

autocomplete_fields = ('user', 'coupon',)


class CouponAdmin(SimpleHistoryAdmin, ExportActionModelAdmin):
inlines = (CouponUserInline, )
Expand Down

0 comments on commit ad27abd

Please sign in to comment.