def filter(self, *args, **kwargs):
        if 'currentUser' in kwargs and 'user' in kwargs:
            args = [kwargs.pop('user')] + list(args)
            kwargs['user'] = kwargs.pop('currentUser')
        return super(User, self).filter(*args, **kwargs)
Add test data to database via formset
dataset/ETHPy150Open girder/girder/girder/models/user.py/User.filter--crossover with--dataset/ETHPy150Open cloudera/hue/desktop/core/ext-py/Django-1.6.10/tests/model_formsets_regress/tests.py/FormfieldShouldDeleteFormTests.test_init_database