PyCon / pycon2019

Website for PyCon 2019
BSD 3-Clause "New" or "Revised" License
158 stars 89 forks source link

Fix missing permissions for proposals #571

Closed dpoirier closed 9 years ago

dpoirier commented 9 years ago

This makes sure that for each proposal kind, we have the right Permission records created.

It also makes sure we have the corresponding Section, ProposalKind, and ProposalSection records, and even the Conference record for the current year.

Along the way it has to clean up some miscoding around kind & section slugs and names. The assumption through here is that the slugs are the unchanging parts of each proposal kind, while names could change.

Additionally, a number of tests no longer need to create some of these records in setup() because they'll already exist, which might even speed up the tests slightly.

This might seem like overkill, but it's been an ongoing problem. It's also set up to only run at the end of running migrations, so there shouldn't be any overhead.

dpoirier commented 9 years ago

Updated.

dchukhin commented 9 years ago

also, the following files have flake8 errors:

Besides that, looks good