Re: Issue with save/save_model/clean from admin (django 1.6.3dev)

2014-02-25 Thread Jonathan Pentecost
I _think_ your problem might lie in the confusion between "blank" and "null"; taken from https://docs.djangoproject.com/en/dev/ref/models/fields/#blank; null is purely database-related, whereas blank

Re: Issue with save/save_model/clean from admin (django 1.6.3dev)

2014-02-25 Thread Shai Berger
Hi Stefano, You are leaving out important details -- the error you are getting is clearly about a "related field" (ForeignKey, OneToOne or ManyToMany), but there is no such field in the model you provided. I suspect it is more likely to be a usage issue rather than a problem in Django code or

Issue with save/save_model/clean from admin (django 1.6.3dev)

2014-02-24 Thread Stefano Crosta
Hello! I'm trying to understand if this is a bug, or a not clearly documented feature. I have a simple model where one field should be calculated at save. eg. class MyModel(models.Model): a = models.CharField(max_length=255) b = models.CharField(max_length=255, blank = True) Now, if I