from django.db import models

from topdownrbac.models import RestrictedObject, UserGroupSubject


class DualInheritanceModel(RestrictedObject, UserGroupSubject):
    """
    A model that inherits from both RestrictedObject and UserGroupSubject,
    used to test dual-inheritance scenarios within the core library.

    This mirrors the pattern used by example_app.Organization, but lives
    inside the test suite so the core library can be tested in isolation.
    """

    name = models.CharField(max_length=200)

    def __str__(self):
        return self.name
