Did I find the right examples for you? yes no

All Samples(1)  |  Call(0)  |  Derive(0)  |  Import(1)

src/d/j/django-forumbr-0.4.0.1/forum/tests.py   django-forumbr(Download)
def new_profile(user, nickname=None, gender=None):
    from .models import Profile, GENDER_MALE
 
    return Profile.objects.create(
        user=user,
        nickname=nickname or user.username,
        gender=gender or GENDER_MALE)