bradleyayers/django-tables2 — Issue #57: DeclarativeColumnsMetaclass.__new__ should super-call
Author: mwhudson
Created: 2012-03-08 00:17:18+00:00
State: open

If you want a subclass of Table to have a metaclass such as ABCMeta, you need to subclass both DeclarativeColumnsMetaclass and the other class. Because DeclarativeColumnsMetaclass just calls type.__new__ rather than super(DeclarativeColumnsMetaclass, cls).__new__, you have to be more careful about the order you subclass things that you should have to be.

Luckily the fix is trivial :-)