def allow_relation(self, obj1, obj2, **hints):
if obj1._meta.app_label != '<STR_LIT>' and obj2._meta.app_label != '<STR_LIT>':<EOL><INDENT>return True<EOL><DEDENT>return None<EOL>
Relations between objects are allowed between nodeshot2 objects only