<reponame>dslowikowski/commcare-hq<filename>corehq/apps/users/management/commands/ptop_fast_reindex_users.py
from corehq.apps.users.models import CommCareUser
from corehq.apps.hqcase.management.commands.ptop_fast_reindexer import ElasticReindexer
from corehq.pillows.user import UserPillow


class Command(ElasticReindexer):
    help = "Fast reindex of user elastic index by using the domain view and reindexing users"

    doc_class = CommCareUser
    view_name = 'users/by_username'
    pillow_class = UserPillow

from corehq.apps.users.models import CommCareUser
from corehq.apps.hqcase.management.commands.ptop_fast_reindexer import ElasticReindexer
from corehq.pillows.user import UserPillow


class Command(ElasticReindexer):
    help = "Fast reindex of user elastic index by using the domain view and reindexing users"

    doc_class = CommCareUser
    view_name = 'users/by_username'
    pillow_class = UserPillow