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 with each class that has
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 that file. Which one are you
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
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:
Cann
4 matches
Mail list logo