python - New class attribute not added to model's DB table in Django -
i have model class
class document(models.model): docfile = models.filefield(upload_to=_upload_path) user = models.foreignkey(user) user_id = user.primary_key options = 0 def get_upload_path(self,filename): homecoming "uploads/"+str(self.user.id) + '/' + str(date.today()) + '/' + filename the class worked fine until added options attribute. when type ./manage.py sql myapp don't see options row, , document objects have options attribute hard-set 0. have south , django 1.6. did was
./manage.py migrate myapp which said "there's nil migrate."
what doing wrong?
python django
No comments:
Post a Comment