Did I find the right examples for you? yes no

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

src/s/w/swarm-war-1.0.0b1/swarm_war/credits/tests/util.py   swarm-war(Download)
 
#App imports
from ..models import Listing
 
class BaseTestCase(TestCase):
	def setUp(self):
		self.username = 'test_user'
		self.password = 'foobar'
		self.user = User.objects.create_user(self.username, 'test_user@example.com', self.password)
		self.l1 = Listing(num_game_credits=10, num_fb_credits=10)
		self.user = User.objects.create_user(self.username, 'test_user@example.com', self.password)
		self.l1 = Listing(num_game_credits=10, num_fb_credits=10)
		self.l2 = Listing(num_game_credits=20, num_fb_credits=15, title="Special deal!", description="Bulk discount, extra 5 credits!")
		self.client.login(username=self.username, password=self.password)
 

src/s/w/swarm-war-HEAD/swarm_war/credits/tests/util.py   swarm-war(Download)
 
#App imports
from ..models import Listing
 
class BaseTestCase(TestCase):
	def setUp(self):
		self.username = 'test_user'
		self.password = 'foobar'
		self.user = User.objects.create_user(self.username, 'test_user@example.com', self.password)
		self.l1 = Listing(num_game_credits=10, num_fb_credits=10)
		self.user = User.objects.create_user(self.username, 'test_user@example.com', self.password)
		self.l1 = Listing(num_game_credits=10, num_fb_credits=10)
		self.l2 = Listing(num_game_credits=20, num_fb_credits=15, title="Special deal!", description="Bulk discount, extra 5 credits!")
		self.client.login(username=self.username, password=self.password)
 

src/d/j/django-bazaar-HEAD/bazaar/listings/admin.py   django-bazaar(Download)
from __future__ import unicode_literals
from django.contrib import admin
 
from .models import Listing, ListingSet, Publishing, Store
 

src/s/w/swarm-war-1.0.0b1/swarm_war/credits/views.py   swarm-war(Download)
 
#App imports
from models import Listing, PurchaseRecord
from swarm_war.core import parse_signed_request
from swarm_war.core.models import CoreProfile

src/s/w/swarm-war-HEAD/swarm_war/credits/views.py   swarm-war(Download)
 
#App imports
from models import Listing, PurchaseRecord
from swarm_war.core import parse_signed_request
from swarm_war.core.models import CoreProfile

src/s/w/swarm-war-1.0.0b1/swarm_war/credits/admin.py   swarm-war(Download)
 
#App imports
from models import Listing, PurchaseRecord
 
admin.site.register(Listing)

src/s/w/swarm-war-HEAD/swarm_war/credits/admin.py   swarm-war(Download)
 
#App imports
from models import Listing, PurchaseRecord
 
admin.site.register(Listing)

src/d/j/django-bazaar-HEAD/bazaar/listings/filters.py   django-bazaar(Download)
 
from ..filters import BaseFilterSet
from .models import Listing, Publishing
 
 

src/d/j/django-bazaar-HEAD/bazaar/listings/views.py   django-bazaar(Download)
from ..mixins import BazaarPrefixMixin, FilterMixin
from .filters import ListingFilter
from .models import Listing