Skip to content

Commit

Permalink
Fix bug
Browse files Browse the repository at this point in the history
  • Loading branch information
ldeluigi committed Jun 17, 2024
1 parent 4b81515 commit daff9e8
Showing 1 changed file with 0 additions and 5 deletions.
5 changes: 0 additions & 5 deletions backend/spellbook/admin/combo_admin.py
Original file line number Diff line number Diff line change
Expand Up @@ -93,11 +93,6 @@ class FeatureRemovedInComboAdminInline(admin.TabularInline):
autocomplete_fields = ['feature']
classes = ['collapse']

def get_extra(self, request: HttpRequest, obj, **kwargs: Any) -> int:
if hasattr(request, 'from_suggestion') and request.from_suggestion is not None: # type: ignore
return len(request.from_suggestion.removes_list) # type: ignore
return super().get_extra(request, obj, **kwargs)


class PayoffFilter(CustomFilter):
title = 'is payoff'
Expand Down

0 comments on commit daff9e8

Please sign in to comment.