def __new__(cls, pk):
    obj = cls.objects.get(pk, None)
    if (obj is None):
        obj = super(MockEnt, cls).__new__(cls)
        obj.pk = pk
    return obj
def __new__(cls, pk):
    obj = cls.objects.get(pk, None)
    if (obj is None):
        obj = super(MockEnt, cls).__new__(cls)
        obj.pk = pk
    return obj