django/django — pull request #2658 by drtyrsa (2014-05-16 12:32:32+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.