ModelForm view to save to the db, what am I doing
wrong please
Cannot seem to get .save() to write to the db
This is the model
class Customer(models.Model):
email = models.EmailField()
postcode = models.CharField(max_length=10)
def __unicode__(self):
return self.email
Cannot seem to get .save() to write to the db
This is the model
class Customer(models.Model):
email = models.EmailField()
postcode = models.CharField(max_length=10)
def __unicode__(self):
return self.email
def save(self):
self.postcode=upper(self.postcode)
2 matches
Mail list logo