My favorites | Sign in
Project Home Wiki Issues
New issue   Search
for
  Advanced search   Search tips   Subscriptions
Issue 132: PositiveSmallIntegerField
1 person starred this issue and may be notified of changes. Back to list
Status:  New
Owner:  ----


Sign in to add a comment
 
Reported by jffiori...@gmail.com, Sep 25, 2012
What steps will reproduce the problem?
1.i have a field my model like this:
    anho = models.PositiveSmallIntegerField(validators=[validarVehiculoAnho],verbose_name="Año")
2.i change the field like this:
    anho = models.PositiveSmallIntegerField(validators=[validarVehiculoAnho],verbose_name="Año",blank=True,null=True)
3. Run ./manage.py evolve --hint --execute
4. The update was successful
5. Change again the filed like this:
    anho = models.PositiveSmallIntegerField(validators=[validarVehiculoAnho],verbose_name="Año")
6. Run ./manage.py evolve --hint --execute
7. Get this error:
Error: Cannot use hinted evolution: AddField or ChangeField mutation for 'Vehiculo.anho' in 'MantentPck' requires user-specified initial value.

What is the expected output? What do you see instead?
Expected to change again this field.

Sign in to add a comment

Powered by Google Project Hosting