python - Unable to update django-stdimagefield -
i started experiment django-stdimage. here django-models.
from django.db import models django.forms import modelform stdimage import stdimagefield class employee(models.model): name = models.charfield(max_length=50) photo = stdimagefield(upload_to='photo', blank=true, size=(400, 400), thumbnail_size=(100, 100)) def __unicode__(self): homecoming self.name class meta: ordering = ['name'] class employeeform(modelform): class meta: model = nutrient i can create new employee objects , save them without problem. cannot alter or delete photo image 1 time saved.
can help me? thanks.
python django django-models
No comments:
Post a Comment