Files @ 8badb0cb99fa
Branch filter:

Location: symposion_app/pinaxcon/raffle/apps.py

Clinton Roy
first stab at making a room slot, still not quite there, think i have to make a separate slot for each time slot
from django.apps import AppConfig


class RaffleConfig(AppConfig):
    name = "pinaxcon.raffle"
    label = "pinaxcon_raffle"
    verbose_name = "Pinaxcon Raffle"
    admin_group_name = "Raffle admins"

    def ready(self):
        import pinaxcon.raffle.signals
    
    def get_admin_group(self):
        from django.contrib.auth.models import Group

        group, created = Group.objects.get_or_create(name=self.admin_group_name)
        return group