Bulkmailer / BulkMailer-Backend

Re-defined variable from outer scope PYL-W0621
Anti-pattern
Major
1 occurrence in this check
Redefining name 'GroupDetails' from outer scope (line 9)
 31
 32    def validate(self, data):
 33        email = data["email"]
 34        GroupDetails = GroupDetails.objects.filter(group=data["group"]) 35
 36        if GroupDetails.filter(email=email).exists():
 37            raise ValidationError({"msg": "email already exists in this group"})