from django.core.management import BaseCommand from specializations.models import Specialization from ratings.models import HistoryRating from users.models import User class Command(BaseCommand): def handle(self, *args, **options): contractors = User.contractor_objects.all()