Did I find the right examples for you? yes no

All Samples(10)  |  Call(5)  |  Derive(0)  |  Import(5)

src/c/o/colab-HEAD/colab/apps/flag/views.py   colab(Download)
from django.shortcuts import get_object_or_404
 
from flag.models import add_flag
 
@login_required
        creator = None
 
    add_flag(request.user, content_type, object_id, creator, comment)
    request.user.message_set.create(message="You have added a flag. A moderator will review your submission shortly.")
 

src/m/y/mycogia.com-HEAD/apps/flag/views.py   mycogia.com(Download)
from django.shortcuts import get_object_or_404
 
from flag.models import add_flag
 
@login_required
        creator = None
 
    add_flag(request.user, content_type, object_id, creator, comment)
    request.user.message_set.create(message="You have added a flag. A moderator will review your submission shortly.")
 

src/d/j/django-flag-0.1.1/flag/views.py   django-flag(Download)
from django.shortcuts import get_object_or_404
 
from flag.models import add_flag
 
@login_required
        creator = None
 
    add_flag(request.user, content_type, object_id, creator, comment)
    request.user.message_set.create(message="You have added a flag. A moderator will review your submission shortly.")
 

src/d/j/django-flag-HEAD/flag/views.py   django-flag(Download)
from django.contrib import messages
 
from flag.models import add_flag
 
 
        creator = None
 
    add_flag(request.user, content_type, object_id, creator, comment)
    messages.success(request, _("You have added a flag. A moderator will review your submission shortly."), fail_silently=True)
 

src/c/l/clusterify-HEAD/flag/views.py   clusterify(Download)
from django.shortcuts import get_object_or_404
 
from flag.models import add_flag
 
@login_required
        creator = None
 
    add_flag(request.user, content_type, object_id, creator, comment)
    request.user.message_set.create(message="You have added a flag. A moderator will review your submission shortly.")