Files @ 7fac10241ec7
Branch filter:

Location: symposion_app/pinaxcon/raffle/apps.py

Joel Addison
Improve attendee reports

Display attendee profile data in normal table without DataTables so
sorting is not applied, causing data to be confusing to read.
Include item quantity in attendee data report for accurate schwag packing.
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