TIL - π§Ή unimport linter formatter
what if you (like me) don’t like to clean up your code while in the zone, but you value a linted and well formatted codebase?
TIL - π Extracting modules provided by installed package
How do I get at runtime the list of modules installed by package? Use setuptools, Luke!
TIL - Submitting a form from an external button
You can submit a form from a button not included in the form itself
My Python linting setup in 2020
![My Python linting setup in 2020](https://sleepy.yaks.industries/images/the-creative-exchange-cpIgNaazQ6w-unsplash_hub3a42162602721f60fdd5192678ea42d_585507_860x0_resize_q75_box.jpg)
βHow I Learned to Stop Worrying and Love the automated code formattingβ
Converting a django CMS plugin to a different model
![Converting a django CMS plugin to a different model](https://sleepy.yaks.industries/images/sam-farallon-3KgdLKhAnTM-unsplash_hue7d3d10cf7a3dc5853c8002bd4b8d253_799729_860x0_resize_q75_box.jpg)
Migrating django CMS plugins data from one model to another, for example during an upgrade, is a bit tricky. Thansk to its polymorphic nature, though, it’s not complicated to achieve, one you know the underlying structure.