def ready(self): # too bad there isn't an "all_django_apps_ready" signal request_started.connect(init_badges_once, dispatch_uid='init_askbot_badges_once') import followit user_model = get_user_model() followit.register(user_model)
def ready(self): # too bad there isn't an "all_django_apps_ready" signal request_started.connect( init_badges_once, dispatch_uid='init_askbot_badges_once') import followit user_model = get_user_model() followit.register(user_model)
def ready(self): from askbot.models import badges try: badges.init_badges() except: pass import followit user_model = get_user_model() followit.register(user_model)
def ready(self): import followit Car = apps.get_model('tests.Car') Alligator = apps.get_model('tests.Alligator') followit.register(Car) followit.register(Alligator) followit.register(get_user_model()) #to test following users
def ready(self): import followit Car = apps.get_model('tests.Car') Alligator = apps.get_model('tests.Alligator') followit.register(Car) followit.register(Alligator) followit.register(get_user_model())#to test following users
from django.db import models from followit.compat import User class Car(models.Model): yeah = models.BooleanField(default = True) class Alligator(models.Model): yeah = models.BooleanField(default = True) import followit followit.register(Car) followit.register(Alligator) followit.register(User)#to test following users
from django.db import models from django.contrib.auth import get_user_model class Car(models.Model): yeah = models.BooleanField(default = True) class Alligator(models.Model): yeah = models.BooleanField(default = True) import followit followit.register(Car) followit.register(Alligator) followit.register(get_user_model()) #to test following users
def ready(self): import followit user_model = get_user_model() followit.register(user_model)
from django.db import models from django.contrib.auth.models import User class Car(models.Model): yeah = models.BooleanField(default=True) class Alligator(models.Model): yeah = models.BooleanField(default=True) import followit followit.register(Car) followit.register(Alligator) followit.register(User) #to test following users
def setUp(self): User = get_user_model() self.u1 = User.objects.create_user('user1', '*****@*****.**') self.u2 = User.objects.create_user('user2', '*****@*****.**') self.u3 = User.objects.create_user('user3', '*****@*****.**') followit.register(User)