Did I find the right examples for you? yes no

All Samples(5)  |  Call(2)  |  Derive(0)  |  Import(3)

src/c/o/comics-HEAD/comics/accounts/views.py   comics(Download)
from django.shortcuts import get_object_or_404, render
 
from comics.accounts.models import Subscription
from comics.core.models import Comic
from comics.sets.models import Set
    if 'add_comic' in request.POST:
        subscription = Subscription(
            userprofile=request.user.comics_profile, comic=comic)
        subscription.save()
        if not request.is_ajax():
        if comic.slug in request.POST and comic not in my_comics:
            subscription = Subscription(
                userprofile=request.user.comics_profile, comic=comic)
            subscription.save()
            if not request.is_ajax():

src/c/o/comics-HEAD/comics/api/resources.py   comics(Download)
    SecretKeyAuthentication, MultiAuthentication)
from comics.core.models import Comic, Release, Image
from comics.accounts.models import Subscription
 
 

src/c/o/comics-HEAD/comics/api/tests.py   comics(Download)
from django.test import TestCase
 
from comics.accounts.models import Subscription
from comics.core.models import Comic