Did I find the right examples for you? yes no

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

src/d/j/django-fixtureless-1.2.0/fixtureless/generator.py   django-fixtureless(Download)
            return random.choice(field.choices)[0]
 
        str_len = constants.DEFAULT_CHARFIELD_MAX_LEN
        if field.max_length is not None:
            str_len = random.randint(0, field.max_length)
    def _generate_slugfield(self, instance, field):
        str_len = constants.DEFAULT_CHARFIELD_MAX_LEN
        if field.max_length is not None:
            str_len = random.randint(0, field.max_length)
 

src/d/j/django-fixtureless-HEAD/fixtureless/generator.py   django-fixtureless(Download)
            return random.choice(field.choices)[0]
 
        str_len = constants.DEFAULT_CHARFIELD_MAX_LEN
        if field.max_length is not None:
            str_len = random.randint(0, field.max_length)
    def _generate_slugfield(self, instance, field):
        str_len = constants.DEFAULT_CHARFIELD_MAX_LEN
        if field.max_length is not None:
            str_len = random.randint(0, field.max_length)