django/django — pull request #2661 by timgraham (2014-05-16 13:45:08+00:00)
Title: Fixed #18389 -- Fixed the way contribute_to_class is called

Now this method is only called only if the object is an instance.
This allows to have field classes as model class attributes.