
def get_object_or_None(model, **kwargs):
    try:
        return model.objects.get(**kwargs)
    except model.DoesNotExist:
        return None

@@ -1,8 +1,51 @@
+from django.shortcuts import _get_queryset%0A
 %0Adef get
@@ -66,16 +66,23 @@
 e(model,
+ *args,
  **kwarg
@@ -93,46 +93,84 @@
     
-try:%0A        return model.objects.get(
+queryset = _get_queryset(model)%0A    try:%0A        return queryset.get(*args, 
 **kw
@@ -186,16 +186,25 @@
  except 
+queryset.
 model.Do

Upgrade the get_object_or_None function.