def get_uncategorized(self):
        dtr = None
        configs = CoreConfiguration.objects.filter()
        if configs.count() > 0:
            # Taking last config as a most proper one
            config = configs.reverse()[0]
            dtr = config.uncategorized
        return dtr
Returns Uncategorized document type rule (In case it is set in system) or None (In case it is not)
dataset/ETHPy150Open adlibre/Adlibre-DMS/adlibre_dms/apps/core/models.py/DocumentTypeRuleManager.get_uncategorized