Will & Skill Developers

Will & Skill Developers


Thoughts, snippets and ideas from the team at Will & Skill AB, Stockholm.

Faisal M
Author

“The mind is not a vessel to be filled, but a fire to be kindled.” ― Plutarch

Share


Tags


avrt

How to get <APPNAME>.<MODELNAME> in Django

def get_model_app_name(object_): return "{}.{}".format(object_.__module__.split('.')[0], object_.__class__.__name__)…

Faisal MFaisal M
def get_model_app_name(object_):
    return "{}.{}".format(object_.__module__.split('.')[0], object_.__class__.__name__)
Faisal M
Author

Faisal M

“The mind is not a vessel to be filled, but a fire to be kindled.” ― Plutarch

View Comments