[Fixed]-Why is Django's Meta an old-style class?

16👍

I believe that there is no real reason (including history, since new-style classes exist since Python 2.2) and that not only can you choose to use a new-style class instead, but that it would probably be a good idea for you to do so (for all the usual reasons).

9👍

Since class Meta is never anything but a simple namespace container, there is zero advantage to subclassing object; just eight extra characters to type. Won’t hurt anything to do so if you feel like it, though.

Leave a comment