Because `share_id` is a field of `DiskShare` model, not a foreign key. https://github.com/allegro/ralph/blob/master/src/ralph/discovery/models_component.py#L343