Skip to content

Commit b18584e

Browse files
Refactor tag fieldsets in DealAdmin
Updated the DealAdmin configuration to use the new `get_tag_fieldsets` method for managing tag-related fields. This change improves code modularity and reduces redundancy in the `dealadmin.py` file.
1 parent 9bbb10a commit b18584e

File tree

1 file changed

+1
-4
lines changed

1 file changed

+1
-4
lines changed

crm/site/dealadmin.py

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -264,10 +264,7 @@ def get_fieldsets(self, request, obj=None):
264264
(' ', {
265265
'fields': ('tag_list',)
266266
}),
267-
(_('Add tags'), {
268-
'classes': ('collapse',),
269-
'fields': ('tags',)
270-
}),
267+
*self.get_tag_fieldsets(obj),
271268
(_('Relations'), {
272269
'classes': ('collapse',),
273270
'fields': (

0 commit comments

Comments
 (0)