def create_quota_limits(apps, schema_editor):
    """Create quota limits."""
    User = apps.get_model('core', 'User')
    if not User.objects.exists():
        return
    ContentType = apps.get_model('contenttypes', 'ContentType')
    UserObjectLimit = apps.get_model('limits', 'UserObjectLimit')
    to_create = []
    ct = ContentType.objects.get(app_label='admin', model='domain')
    for u in User.objects.all():
        to_create.append(UserObjectLimit(user=u, name='quota', max_value=0,
            content_type=ct))
    UserObjectLimit.objects.bulk_create(to_create)
