Did I find the right examples for you? yes no

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

src/d/j/django-lfs-HEAD/lfs/manage/discounts/views.py   django-lfs(Download)
    """
    try:
        discount = Discount.objects.get(pk=id)
    except Discount.DoesNotExist:
        return HttpResponseRedirect(reverse("lfs_manage_discounts"))
    This view is used as a part within the manage discount view.
    """
    discount = Discount.objects.get(pk=id)
 
    return render_to_string(template_name, RequestContext(request, {
    This view is used as a part within the manage discount view.
    """
    discount = Discount.objects.get(pk=id)
 
    criteria = []
    This is called via an AJAX request and returns JSON encoded data.
    """
    discount = Discount.objects.get(pk=id)
    discount_form = DiscountForm(instance=discount, data=request.POST)
 
def delete_discount(request, id):
    """Deletes discount with passed id.
    """
    try:
        discount = Discount.objects.get(pk=id)

src/d/j/django-lfs-0.7.7/lfs/manage/discounts/views.py   django-lfs(Download)
    """
    try:
        discount = Discount.objects.get(pk=id)
    except Discount.DoesNotExist:
        return HttpResponseRedirect(reverse("lfs_manage_discounts"))
    This view is used as a part within the manage discount view.
    """
    discount = Discount.objects.get(pk=id)
 
    return render_to_string(template_name, RequestContext(request, {
    This view is used as a part within the manage discount view.
    """
    discount = Discount.objects.get(pk=id)
 
    criteria = []
    This is called via an AJAX request and returns JSON encoded data.
    """
    discount = Discount.objects.get(pk=id)
    discount_form = DiscountForm(instance=discount, data=request.POST)
 
def delete_discount(request, id):
    """Deletes discount with passed id.
    """
    try:
        discount = Discount.objects.get(pk=id)