1👍
django.contrib.auth
has groups and group permissions, so all you have to do is to define landlords
and tenants
groups with the appropriate permissions then on your models’s save()
method (or using signals or else) add your Landlord
and Tenant
instances to their respective groups.
Source:stackexchange.com