Did I find the right examples for you? yes no

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

src/j/f/jflow-0.4_pre-alpha/src/jflow/db/trade/tools.py   jflow(Download)
from django.core.exceptions import PermissionDenied
 
from models import Trader, FundHolder
 
def get_trader(user):

src/f/l/flow-HEAD/flow/db/trade/tools.py   flow(Download)
from django.core.exceptions import PermissionDenied
 
from models import Trader, FundHolder
 
def get_trader(user):

src/j/f/jflow-0.4_pre-alpha/src/jflow/db/trade/managers.py   jflow(Download)
    def create_superuser(self, username, email, password, team):
        from models import FundHolder
        u = User.objects.create_superuser(username, email, password)
        if not isinstance(team,FundHolder):
            team = FundHolder.objects.get(code = team)

src/f/l/flow-HEAD/flow/db/trade/managers.py   flow(Download)
    def create_superuser(self, username, email, password, team):
        from models import FundHolder
        u = User.objects.create_superuser(username, email, password)
        if not isinstance(team,FundHolder):
            team = FundHolder.objects.get(code = team)