def __init__(self, pk=None, foreignModel=None, obj=None):
self.pk = pk<EOL>self.obj = obj<EOL>if foreignModel is not None:<EOL><INDENT>if issubclass(foreignModel.__class__, weakref.ReferenceType):<EOL><INDENT>foreignModel = foreignModel()<EOL><DEDENT>self._foreignModel = weakref.ref(foreignModel)<EOL><DEDENT>else:<EOL><INDENT>self._foreignModel = None<EOL><DEDENT>
__init__ - Create a ForeignLinkData object

@param pk <int> - The primary key of the foreign object
@param obj <None/IndexedRedisModel> - The resolved object, or None if not yet resolved