Friday 15 April 2011

django - Get the AbstractClass of a model -


How can I get an abstractclass of a model in Django? I tried to type it with type but the type gives me the type of model of the basmodel class or model. Model.__base__ if heetter (model, '_mta') and model._meta Abstract == Correct: yield model

No comments:

Post a Comment