from .models import  *
from .models import City
import django_filters

ob=City()
class ShopFilter(django_filters.FilterSet):
  class Meta:
    model=ShopDetail
    fields=['shop_name','category','city','address','pincode','description']

class CityFilter(django_filters.FilterSet):
  
  class Meta:
    model=ShopDetail
    fields ={
      'district':['exact',],
      'city':['exact'],
      'category':['exact'],
      'shop_name':['icontains',]
    }
    
  
01c15c68740502e46a0453b240b8c842e46b79fc
<mask token>


class CityFilter(django_filters.FilterSet):


    class Meta:
        model = ShopDetail
        fields = {'district': ['exact'], 'city': ['exact'], 'category': [
            'exact'], 'shop_name': ['icontains']}

<mask token>


class ShopFilter(django_filters.FilterSet):


    class Meta:
        model = ShopDetail
        fields = ['shop_name', 'category', 'city', 'address', 'pincode',
            'description']


class CityFilter(django_filters.FilterSet):


    class Meta:
        model = ShopDetail
        fields = {'district': ['exact'], 'city': ['exact'], 'category': [
            'exact'], 'shop_name': ['icontains']}

<mask token>
ob = City()


class ShopFilter(django_filters.FilterSet):


    class Meta:
        model = ShopDetail
        fields = ['shop_name', 'category', 'city', 'address', 'pincode',
            'description']


class CityFilter(django_filters.FilterSet):


    class Meta:
        model = ShopDetail
        fields = {'district': ['exact'], 'city': ['exact'], 'category': [
            'exact'], 'shop_name': ['icontains']}

from .models import *
from .models import City
import django_filters
ob = City()


class ShopFilter(django_filters.FilterSet):


    class Meta:
        model = ShopDetail
        fields = ['shop_name', 'category', 'city', 'address', 'pincode',
            'description']


class CityFilter(django_filters.FilterSet):


    class Meta:
        model = ShopDetail
        fields = {'district': ['exact'], 'city': ['exact'], 'category': [
            'exact'], 'shop_name': ['icontains']}

from .models import  *
from .models import City
import django_filters

ob=City()
class ShopFilter(django_filters.FilterSet):
  class Meta:
    model=ShopDetail
    fields=['shop_name','category','city','address','pincode','description']

class CityFilter(django_filters.FilterSet):
  
  class Meta:
    model=ShopDetail
    fields ={
      'district':['exact',],
      'city':['exact'],
      'category':['exact'],
      'shop_name':['icontains',]
    }
    
  