Skip to content

Instantly share code, notes, and snippets.

@pzeinlinger
pzeinlinger / models.py
Created March 13, 2019 22:01 — forked from kyle-eshares/models.py
Strict ForeignKeys
from __future__ import unicode_literals
from django.db import models
from django.db.models.fields.related_descriptors import ForwardManyToOneDescriptor # noqa
class RelationNotLoaded(Exception):
pass