slug's default=''

This might be a stupid question... Because we have a custom save method in the Post model where we set the slug field, do we need default=''?

Or do we need this because there is no null=True?

Sorry You must be a logged in, registered user to answer a question.

Answers

Yes, since the field isn't nullable (you don't want nullable text fields since that gives them two different "false" values), you must provide a default.