Hello,
I want to override the save for the show model so I check for if the value
passed for a field is null if so ignore saving for the field
class Shows(models.Model):
some_field = models.CharField(max_length=128, default="something")
def save(self, *args, **kwargs):
super(Show, self).save()
--
You received this message because you are subscribed to the Google Groups
"Django users" group.
To unsubscribe from this group and stop receiving emails from it, send an email
to [email protected].
To post to this group, send email to [email protected].
Visit this group at http://groups.google.com/group/django-users.
To view this discussion on the web visit
https://groups.google.com/d/msgid/django-users/48a95f77-ac39-42a3-81f7-11651e8d742c%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.