Did I find the right examples for you? yes no

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

src/w/k/wklejorg-HEAD/apps/userstuff/models.py   wklejorg(Download)
from django.db import models
from django.contrib.auth.models import User
from helpers.helpers import generate_salt
 
 
    def generate_new_salt(self):
        new_salt = generate_salt()
        self.current_salt = new_salt
        self.save()
        return new_salt