Skip to content

Commit

Permalink
Fix method to get limit choices
Browse files Browse the repository at this point in the history
  • Loading branch information
hipek8 committed Oct 29, 2024
1 parent 0aab661 commit c435102
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions src/ralph/lib/mixins/fields.py
Original file line number Diff line number Diff line change
Expand Up @@ -232,6 +232,9 @@ def deconstruct(self):
def limit_choices_to(self):
return self.limit_choices()

def get_limit_choices_to(self):
return self.limit_choices()

def limit_choices(self):
"""
Add limit_choices_to search by content_type for models
Expand Down

0 comments on commit c435102

Please sign in to comment.