Postgresql Sequence update on data migration

2022-05-24 Thread mohamad ali mehdizadeh
I have a migration from an old table to a new table, so when I migrate also data of old table, I try to keep PrimaryKey values the same as old table. so every thing go well until I see primary key duplicate value errors from Postgresql, I check it and so the Sequence of the new table was not get

Re: Add request object as optional input to BaseForm class

2022-05-24 Thread 'Adam Johnson' via Django developers (Contributions to Django itself)
I don't think this is a good idea, it couples forms too tightly to requests. The idea of a form is to take dictionaries of form inputs, and validate those. It shouldn't need the request. If I write a form class that needs extra things from the request, I write my form class to take just that thing