def get_admin_user()

in atomresponder/pac_xml.py [0:0]


    def get_admin_user():
        from django.contrib.auth.models import User
        try:
            return User.objects.get(username="admin")
        except User.DoesNotExist:
            admins = User.objects.filter(is_superuser=True)
            if admins.count()>0:
                return admins[0]
            else:
                raise RuntimeError("No admin users could be found in the system, surely this is not right?")