Hi! Thanks for Vulture, it's making it super-easy to get rid of unused code in our large Django project.
Django has a number of APIs that rely on using class definitions as a way of defining elements:
Django Admin uses class attributes to customise the way an admin page is displayed.
Django Forms uses custom class attributes to define fields in Python; these are converted to their respective HTML when rendered on a page. (Their values are typically not accessed through these class attributes.)
Django Models uses a Meta inner class within a Model class to customise how the model will behave.
I was wondering how difficult it would be to ignore classes that sub-class a particular class? This would allow me to ignore e.g. Form and Model.
Hi! Thanks for Vulture, it's making it super-easy to get rid of unused code in our large Django project.
Django has a number of APIs that rely on using class definitions as a way of defining elements:
Meta
inner class within aModel
class to customise how the model will behave.I was wondering how difficult it would be to ignore classes that sub-class a particular class? This would allow me to ignore e.g.
Form
andModel
.Thanks 🙂