django-restit 4.1.76__py3-none-any.whl → 4.1.77__py3-none-any.whl

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.1
2
2
  Name: django-restit
3
- Version: 4.1.76
3
+ Version: 4.1.77
4
4
  Summary: A Rest Framework for DJANGO
5
5
  License: MIT
6
6
  Author: Ian Starnes
@@ -351,7 +351,7 @@ pushit/utils.py,sha256=IeTCGa-164nmB1jIsK1lu1O1QzUhS3BKfuXHGjCW-ck,2121
351
351
  rest/.gitignore,sha256=TbEvWRMnAiajCTOdhiNrd9eeCAaIjRp9PRjE_VkMM5g,118
352
352
  rest/README.md,sha256=V3ETc-cJu8PZIbKr9xSe_pA4JEUpC8Dhw4bQeVCDJPw,5460
353
353
  rest/RemoteEvents.py,sha256=nL46U7AuxIrlw2JunphR1tsXyqi-ep_gD9CYGpYbNgE,72
354
- rest/__init__.py,sha256=TP6IkMJoD3gMWWfIbBGcln1Ysvi7HGSgim7XtEOYADM,121
354
+ rest/__init__.py,sha256=42ez8LEkgPOOkm7pc1ftpMfoo52l5H5XggNBtlOWYYs,121
355
355
  rest/arc4.py,sha256=y644IbF1ec--e4cUJ3KEYsewTCITK0gmlwa5mJruFC0,1967
356
356
  rest/cache.py,sha256=1Qg0rkaCJCaVP0-l5hZg2CIblTdeBSlj_0fP6vlKUpU,83
357
357
  rest/crypto/__init__.py,sha256=Tl0U11rgj1eBYqd6OXJ2_XSdNLumW_JkBZnaJqI6Ldw,72
@@ -383,7 +383,7 @@ rest/middleware/request.py,sha256=JchRNy5L-bGd-7h-KFYekGRvREe2eCkZXKOYqIkP2hI,41
383
383
  rest/middleware/session.py,sha256=zHSoQpIzRLmpqr_JvW406wzpvU3W3gDbm5JhtzLAMlE,10240
384
384
  rest/middleware/session_store.py,sha256=X_i06TnZLW1srV0vkjjLhZ7fl1G56PswXxRpVzdFasw,1874
385
385
  rest/models/__init__.py,sha256=M8pvFDq-WCF-QcM58X7pMufYYe0aaQ3U0PwGe9TKbbY,130
386
- rest/models/base.py,sha256=Fo17FhaeZHIVfNP8M6eIoVVikxkOBAGGzsgNg8Fl7B8,65724
386
+ rest/models/base.py,sha256=pjilLSXpkNVdyOVm8ipExYpjW-P--w4yKW36j3-EOdY,65787
387
387
  rest/models/cacher.py,sha256=eKz8TINVhWEqKhJGMsRkKZTtBUIv5rN3NHbZwOC56Uk,578
388
388
  rest/models/metadata.py,sha256=VM5t3I1DYgvwLAOjaYcMdVZ2JWrrcJUMU3o3gATkPYk,12626
389
389
  rest/net.py,sha256=LTF4ip-ur8C2G7NETVOg7ioACegBGo4sDJA18PfF5kQ,1691
@@ -483,7 +483,7 @@ ws4redis/servers/uwsgi.py,sha256=VyhoCI1DnVFqBiJYHoxqn5Idlf6uJPHvfBKgkjs34mo,172
483
483
  ws4redis/settings.py,sha256=K0yBiLUuY81iDM4Yr-k8hbvjn5VVHu5zQhmMK8Dtz0s,1536
484
484
  ws4redis/utf8validator.py,sha256=S0OlfjeGRP75aO6CzZsF4oTjRQAgR17OWE9rgZdMBZA,5122
485
485
  ws4redis/websocket.py,sha256=R0TUyPsoVRD7Y_oU7w2I6NL4fPwiz5Vl94-fUkZgLHA,14848
486
- django_restit-4.1.76.dist-info/LICENSE.md,sha256=VHN4hhEeVOoFjtG-5fVv4jesA4SWi0Z-KgOzzN6a1ps,1068
487
- django_restit-4.1.76.dist-info/METADATA,sha256=a1w3wTLIuENo2NMiZrN4hPiCnhvEykqUTOL_fmaaG6E,7573
488
- django_restit-4.1.76.dist-info/WHEEL,sha256=Zb28QaM1gQi8f4VCBhsUklF61CTlNYfs9YAZn-TOGFk,88
489
- django_restit-4.1.76.dist-info/RECORD,,
486
+ django_restit-4.1.77.dist-info/LICENSE.md,sha256=VHN4hhEeVOoFjtG-5fVv4jesA4SWi0Z-KgOzzN6a1ps,1068
487
+ django_restit-4.1.77.dist-info/METADATA,sha256=AM9Kck1ngBJZB2d2puHI-_yNU9dFtFfjbbpr5onZm60,7573
488
+ django_restit-4.1.77.dist-info/WHEEL,sha256=Zb28QaM1gQi8f4VCBhsUklF61CTlNYfs9YAZn-TOGFk,88
489
+ django_restit-4.1.77.dist-info/RECORD,,
rest/__init__.py CHANGED
@@ -1,4 +1,4 @@
1
1
  from .uberdict import UberDict # noqa: F401
2
2
  from .settings_helper import settings # noqa: F401
3
3
 
4
- __version__ = "4.1.76"
4
+ __version__ = "4.1.77"
rest/models/base.py CHANGED
@@ -199,11 +199,13 @@ class RestModel(object):
199
199
 
200
200
  @classmethod
201
201
  def getGraph(cls, name):
202
- graph_key = "_graph_{0}__".format(name)
203
- if hasattr(cls, graph_key):
204
- return getattr(cls, graph_key)
202
+ if name is None:
203
+ name = "default"
204
+ graph_key = f"_graph_{name}__"
205
+ if hasattr(cls._meta, graph_key):
206
+ return getattr(cls._meta, graph_key)
205
207
  graph = cls.buildGraph(name)
206
- setattr(cls, graph_key, graph)
208
+ setattr(cls._meta, graph_key, graph)
207
209
  return graph
208
210
 
209
211
  def toGraph(self, request=None, graph="basic"):