def db_for_write(self, model, **hints):
        """
        If the app has its own database, use it for writes
        """
        if model._meta.app_label in self._apps:
            return getattr(model, '_db_alias', model._meta.app_label)
        return None
If the app has its own database, use it for writes