def send_activation_email(self, site):
        ctx_dict = {'activation_key': self.activation_key,
                    'expiration_days': settings.ACCOUNT_ACTIVATION_DAYS,
                    'site': site}
        subject = render_to_string('registration/activation_email_subject.txt',
                                   ctx_dict)
        # Email subject *must not* contain newlines
        subject = ''.join(subject.splitlines())
        
        message = render_to_string('registration/activation_email.txt',
                                   ctx_dict)
        
        self.user.email_user(subject, message, settings.DEFAULT_FROM_EMAIL)
Simple type validation of docrule_id provided.
dataset/ETHPy150Open nathanborror/django-registration/registration/models.py/RegistrationProfile.send_activation_email--crossover with--dataset/ETHPy150Open adlibre/Adlibre-DMS/adlibre_dms/couchapps/mdt_manager.py/MetaDataTemplateManager.mdt_read_call_valid