Re: Cannot assign None, does not allow null values

2009-11-28 Thread Martin Lundberg
Is it not that you forget to give the published property a value? On Sat, Nov 28, 2009 at 9:07 AM, onoxo wrote: > Hi! > > when i go to create Actual class. i get this error: > Cannot assign None: "Actual.published" does not allow null values. > > and it makes this error

Re: Cannot assign None, does not allow null values

2009-11-28 Thread onoxo
Hi! when i go to create Actual class. i get this error: Cannot assign None: "Actual.published" does not allow null values. and it makes this error with each class that has published propertie. On Nov 28, 3:32 am, Tim Valenta wrote: > You've got a lot of models in

Re: Cannot assign None, does not allow null values

2009-11-27 Thread Tim Valenta
You've got a lot of models in that file. Which one are you trying to save when it throws the error? By the way, I notice that your "ItemWithMedia" class is probably creating a database table.. if you never need to manipulate it direct (ie, you only make subclasses of it), I might suggest putting

Re: Cannot assign None, does not allow null values

2009-11-27 Thread onoxo
btw. here is a full code: models.py http://snipt.net/vedran/django-models-cannot-assign-none?key=ba151d53cbe8e7c6fd8cfd7993c72897 admin.py http://snipt.net/vedran/django-admin-cannot-assign-none?key=53222b89cf415d0a0a7750f1510ab8a1 so... when i go to create new Actual item i get this error: