I’m currently using typesystem.Object subclasses to help validate posted data for create and update views. I’m using the same object both times, which leads to a problem: the object includes the PK, and I don’t want to permit that in Create.
What approach do people use for this? I can see two:
manually copy the values into the DB record, ensuring you only get what you want/need.
[Potentially, raise a 400 if ID is passed]
have a second typesystem.Object defined for Create from all other uses.