[Answer]-Django expecting primary key I don't have

1👍

it seems like it is expecting my first value to be a primary key.

It is.

I was under the impression if one is not provided that django would auto create a primary key.

It did.

But those are different “it”s. The latter is Django’s ORM, whereas the former is the model’s constructor.

add = Reoccurring(Username=request.user.username, Day=strip(day.Day), Summary=strip(day.N), Start=strip(day.S), End-strip(day.E))

Leave a comment