Simon Willison wrote:
Maybe it would be useful for all Django model objects to gain themselves a duplicate() method which does exactly this - returns an identical object but with id set to None.There is still complication for non autofield primary key. And it's just 3 lines or under.
-- dsw