Skip to content

Instantly share code, notes, and snippets.

@ktechmidas
Created December 3, 2020 13:41
Show Gist options
  • Save ktechmidas/b717b0580e0f01fbb7199b12f5f47ddc to your computer and use it in GitHub Desktop.
Save ktechmidas/b717b0580e0f01fbb7199b12f5f47ddc to your computer and use it in GitHub Desktop.
class FlightFilter(django_filters.FilterSet):
class Meta:
model = Flight
fields = {"ff_from__fullname": ["icontains"]}
label = "Search location or flight number"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment