Skip to content

Commit

Permalink
Merge pull request #607 from open5e/606-spell-schools-error-500
Browse files Browse the repository at this point in the history
Error in the viewset.
  • Loading branch information
augustjohnson authored Nov 14, 2024
2 parents a218d78 + e46fdfc commit a877c84
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion api_v2/views/spell.py
Original file line number Diff line number Diff line change
Expand Up @@ -61,9 +61,10 @@ def setup_eager_loading(queryset, depth):
queryset = queryset.select_related(*selects).prefetch_related(*prefetches)
return queryset


class SpellSchoolFilterSet(FilterSet):
class Meta:
model = models.CreatureSet
model = models.SpellSchool
fields = {
'key': ['in', 'iexact', 'exact' ],
'name': ['iexact', 'exact','contains'],
Expand Down

0 comments on commit a877c84

Please sign in to comment.