Did I find the right examples for you? yes no      Crawl my project      Python Jobs

All Samples(2)  |  Call(1)  |  Derive(0)  |  Import(1)

        def get_salt():
    return ''.join(random.choice(ALPHABET) for _ in range(16))
        


src/s/e/selena-1.0.2/src/selena/services/models.py   selena(Download)
from lck.django.common.models import Named
 
from services.utils import get_salt
 
 
    def save(self, *args, **kwargs):
        if not self.pk or not self.salt:
            self.salt = get_salt()
        super(Agent, self).save(*args, **kwargs)