예제 #1
0
파일: signals.py 프로젝트: Freso/website
def create_library(sender, instance, created, **kwargs):
    from games.models import GameLibrary
    if created:
        game_library = GameLibrary(user=instance)
        game_library.save()
예제 #2
0
def create_library(sender, instance, created, **_kwargs):  # pylint: disable=unused-argument
    """Create a new game library for new users"""
    from games.models import GameLibrary
    if created:
        game_library = GameLibrary(user=instance)
        game_library.save()
예제 #3
0
def create_library(sender, instance, created, **kwargs):
    from games.models import GameLibrary
    if created:
        game_library = GameLibrary(user=instance)
        game_library.save()
예제 #4
0
def create_library(sender, instance, created, **kwargs):
    LOGGER.info("Creating library for %s", instance)
    from games.models import GameLibrary
    if created:
        game_library = GameLibrary(user=instance)
        game_library.save()