Re: IntegrityError: bookings_business.slug may not be NULL on .create()

2011-11-17 Thread Tom Evans
On Thu, Nov 17, 2011 at 12:48 PM, Mario Gudelj wrote: > Hi guys, > I have this issue I can not work out for the life of me. I would really > appreciate it if someone could help. > This is my model: > class Business(models.Model): >     ... >     slug = models.SlugField("Slug", max_length=255, uniq

IntegrityError: bookings_business.slug may not be NULL on .create()

2011-11-17 Thread Mario Gudelj
Hi guys, I have this issue I can not work out for the life of me. I would really appreciate it if someone could help. This is my model: class Business(models.Model): ... slug = models.SlugField("Slug", max_length=255, unique=True, blank=False) I have the following function in the models