jazzband / django-invitations

Generic invitations app for Django
GNU General Public License v3.0
559 stars 166 forks source link

Allow subclassing InvitationsAdapter #255

Open Flimm opened 2 months ago

Flimm commented 2 months ago

Previously, the code would check to see if ACCOUNT_ADAPTER equalled "invitations.models.InvitationsAdapter". But this would cause it to reject subclasses of InvitationsAdapter. Instead, it is enough to check to see if ACCOUNT_ADAPTER setting exists, as this setting is meant for django-allauth.

I would like someone to review this, to check to see if I'm missing something.