# troche rak, ale jeszcze to jakos poprawie. JAKOS.
try:
    if field.related.parent_model._meta.module_name == u"userprofile":
        new = u"%s" % getattr(obj, field.name).get_full_name()
        original = u"%s" % getattr(org_obj, field.name).get_full_name()
    else:
        raise Exception('to mialo tak zrobic jak cos')
except:
    ...

code written on the train, wtf I was thinking about?!

By chleb, 2015-10-28 16:25:42