from django.db import models as django_models from django.contrib.auth.models import User def mock_user(): explorer_list = User.objects.all() if len(explorer_list) <= 0: return User.objects.create_user( username='testpeter', password='Develop123' ) else: return explorer_list[0]