from contact.models import Contact
from wtem.models import Submission
class Command(BaseCommand):
from contact.models import Contact
from wtem.models import Submission
class Command(BaseCommand):
if ids:
query = query.filter(pk__in=ids)
for wtem_contact in query:
for student in wtem_contact.body['student']:
if ids:
query = query.filter(pk__in=ids)
for wtem_contact in query:
for student in wtem_contact.body['student']:
args = dict()
for attr in ['first_name', 'last_name', 'email']:
args[attr] = student[attr]
args = dict()
for attr in ['first_name', 'last_name', 'email']:
args[attr] = student[attr]