def derive_success_message(self):
        # First check whether a default message has been set
        if self.success_message is None:
            return _("Your new %s has been created.") % self.model._meta.verbose_name
        else:
            return self.success_message
dataset/ETHPy150Open nyaruka/smartmin/smartmin/views.py/SmartCreateView.derive_success_message/original