django-restit 4.2.72__tar.gz → 4.2.73__tar.gz

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.
Files changed (507) hide show
  1. {django_restit-4.2.72 → django_restit-4.2.73}/PKG-INFO +1 -1
  2. {django_restit-4.2.72 → django_restit-4.2.73}/account/models/device.py +13 -2
  3. {django_restit-4.2.72 → django_restit-4.2.73}/account/models/member.py +8 -1
  4. {django_restit-4.2.72 → django_restit-4.2.73}/account/models/membership.py +3 -2
  5. {django_restit-4.2.72 → django_restit-4.2.73}/account/models/session.py +1 -1
  6. {django_restit-4.2.72 → django_restit-4.2.73}/account/rpc/auth.py +8 -1
  7. {django_restit-4.2.72 → django_restit-4.2.73}/account/rpc/device.py +7 -0
  8. {django_restit-4.2.72 → django_restit-4.2.73}/incident/models/rules.py +17 -0
  9. {django_restit-4.2.72 → django_restit-4.2.73}/metrics/tq.py +1 -1
  10. {django_restit-4.2.72 → django_restit-4.2.73}/pyproject.toml +1 -1
  11. {django_restit-4.2.72 → django_restit-4.2.73}/rest/models/base.py +64 -17
  12. {django_restit-4.2.72 → django_restit-4.2.73}/LICENSE.md +0 -0
  13. {django_restit-4.2.72 → django_restit-4.2.73}/README.md +0 -0
  14. {django_restit-4.2.72 → django_restit-4.2.73}/account/__init__.py +0 -0
  15. {django_restit-4.2.72 → django_restit-4.2.73}/account/admin.py +0 -0
  16. {django_restit-4.2.72 → django_restit-4.2.73}/account/fcm/__init__.py +0 -0
  17. {django_restit-4.2.72 → django_restit-4.2.73}/account/fcm/google.py +0 -0
  18. {django_restit-4.2.72 → django_restit-4.2.73}/account/fcm/v1.py +0 -0
  19. {django_restit-4.2.72 → django_restit-4.2.73}/account/migrations/0001_initial.py +0 -0
  20. {django_restit-4.2.72 → django_restit-4.2.73}/account/migrations/0003_member_phone_number.py +0 -0
  21. {django_restit-4.2.72 → django_restit-4.2.73}/account/migrations/0004_group_modified_alter_group_created.py +0 -0
  22. {django_restit-4.2.72 → django_restit-4.2.73}/account/migrations/0005_member_auth_code_expires.py +0 -0
  23. {django_restit-4.2.72 → django_restit-4.2.73}/account/migrations/0006_member_security_token.py +0 -0
  24. {django_restit-4.2.72 → django_restit-4.2.73}/account/migrations/0007_authtoken_signature_authsession.py +0 -0
  25. {django_restit-4.2.72 → django_restit-4.2.73}/account/migrations/0008_memberdevice_memberdevicemetadata.py +0 -0
  26. {django_restit-4.2.72 → django_restit-4.2.73}/account/migrations/0009_alter_member_phone_number.py +0 -0
  27. {django_restit-4.2.72 → django_restit-4.2.73}/account/migrations/0010_delete_authtoken.py +0 -0
  28. {django_restit-4.2.72 → django_restit-4.2.73}/account/migrations/0011_authtoken.py +0 -0
  29. {django_restit-4.2.72 → django_restit-4.2.73}/account/migrations/0012_settings_settingsmetadata.py +0 -0
  30. {django_restit-4.2.72 → django_restit-4.2.73}/account/migrations/0013_memberdevice_ip.py +0 -0
  31. {django_restit-4.2.72 → django_restit-4.2.73}/account/migrations/0014_alter_notificationmemberrecord_member.py +0 -0
  32. {django_restit-4.2.72 → django_restit-4.2.73}/account/migrations/0015_memberdevice_buid.py +0 -0
  33. {django_restit-4.2.72 → django_restit-4.2.73}/account/migrations/0016_authsession_buid.py +0 -0
  34. {django_restit-4.2.72 → django_restit-4.2.73}/account/migrations/0017_rename_requires_topt_member_requires_totp.py +0 -0
  35. {django_restit-4.2.72 → django_restit-4.2.73}/account/migrations/0018_userpasskey.py +0 -0
  36. {django_restit-4.2.72 → django_restit-4.2.73}/account/migrations/0019_group_location.py +0 -0
  37. {django_restit-4.2.72 → django_restit-4.2.73}/account/migrations/0020_cloudcredentials_cloudcredentialsmetadata.py +0 -0
  38. {django_restit-4.2.72 → django_restit-4.2.73}/account/migrations/__init__.py +0 -0
  39. {django_restit-4.2.72 → django_restit-4.2.73}/account/models/__init__.py +0 -0
  40. {django_restit-4.2.72 → django_restit-4.2.73}/account/models/feeds.py +0 -0
  41. {django_restit-4.2.72 → django_restit-4.2.73}/account/models/group.py +0 -0
  42. {django_restit-4.2.72 → django_restit-4.2.73}/account/models/legacy.py +0 -0
  43. {django_restit-4.2.72 → django_restit-4.2.73}/account/models/notify.py +0 -0
  44. {django_restit-4.2.72 → django_restit-4.2.73}/account/models/passkeys.py +0 -0
  45. {django_restit-4.2.72 → django_restit-4.2.73}/account/models/settings.py +0 -0
  46. {django_restit-4.2.72 → django_restit-4.2.73}/account/oauth/__init__.py +0 -0
  47. {django_restit-4.2.72 → django_restit-4.2.73}/account/oauth/google.py +0 -0
  48. {django_restit-4.2.72 → django_restit-4.2.73}/account/passkeys/__init__.py +0 -0
  49. {django_restit-4.2.72 → django_restit-4.2.73}/account/passkeys/core.py +0 -0
  50. {django_restit-4.2.72 → django_restit-4.2.73}/account/periodic.py +0 -0
  51. {django_restit-4.2.72 → django_restit-4.2.73}/account/rpc/__init__.py +0 -0
  52. {django_restit-4.2.72 → django_restit-4.2.73}/account/rpc/group.py +0 -0
  53. {django_restit-4.2.72 → django_restit-4.2.73}/account/rpc/member.py +0 -0
  54. {django_restit-4.2.72 → django_restit-4.2.73}/account/rpc/notify.py +0 -0
  55. {django_restit-4.2.72 → django_restit-4.2.73}/account/rpc/oauth.py +0 -0
  56. {django_restit-4.2.72 → django_restit-4.2.73}/account/rpc/passkeys.py +0 -0
  57. {django_restit-4.2.72 → django_restit-4.2.73}/account/rpc/settings.py +0 -0
  58. {django_restit-4.2.72 → django_restit-4.2.73}/account/settings.py +0 -0
  59. {django_restit-4.2.72 → django_restit-4.2.73}/account/templates/email/base.html +0 -0
  60. {django_restit-4.2.72 → django_restit-4.2.73}/account/templates/email/invite.html +0 -0
  61. {django_restit-4.2.72 → django_restit-4.2.73}/account/templates/email/plain/base.html +0 -0
  62. {django_restit-4.2.72 → django_restit-4.2.73}/account/templates/email/plain/invite.html +0 -0
  63. {django_restit-4.2.72 → django_restit-4.2.73}/account/templates/email/plain/reset_code.html +0 -0
  64. {django_restit-4.2.72 → django_restit-4.2.73}/account/templates/email/reset_code.html +0 -0
  65. {django_restit-4.2.72 → django_restit-4.2.73}/account/templates/email/simple/invite.html +0 -0
  66. {django_restit-4.2.72 → django_restit-4.2.73}/account/templates/email/simple/reset_code.html +0 -0
  67. {django_restit-4.2.72 → django_restit-4.2.73}/auditlog/README +0 -0
  68. {django_restit-4.2.72 → django_restit-4.2.73}/auditlog/__init__.py +0 -0
  69. {django_restit-4.2.72 → django_restit-4.2.73}/auditlog/admin.py +0 -0
  70. {django_restit-4.2.72 → django_restit-4.2.73}/auditlog/cloudwatch.py +0 -0
  71. {django_restit-4.2.72 → django_restit-4.2.73}/auditlog/decorators.py +0 -0
  72. {django_restit-4.2.72 → django_restit-4.2.73}/auditlog/middleware.py +0 -0
  73. {django_restit-4.2.72 → django_restit-4.2.73}/auditlog/migrations/0001_initial.py +0 -0
  74. {django_restit-4.2.72 → django_restit-4.2.73}/auditlog/migrations/__init__.py +0 -0
  75. {django_restit-4.2.72 → django_restit-4.2.73}/auditlog/models.py +0 -0
  76. {django_restit-4.2.72 → django_restit-4.2.73}/auditlog/periodic.py +0 -0
  77. {django_restit-4.2.72 → django_restit-4.2.73}/auditlog/rpc.py +0 -0
  78. {django_restit-4.2.72 → django_restit-4.2.73}/auditlog/tq.py +0 -0
  79. {django_restit-4.2.72 → django_restit-4.2.73}/auditlog/urls.py +0 -0
  80. {django_restit-4.2.72 → django_restit-4.2.73}/inbox/README.md +0 -0
  81. {django_restit-4.2.72 → django_restit-4.2.73}/inbox/__init__.py +0 -0
  82. {django_restit-4.2.72 → django_restit-4.2.73}/inbox/admin.py +0 -0
  83. {django_restit-4.2.72 → django_restit-4.2.73}/inbox/handlers.py +0 -0
  84. {django_restit-4.2.72 → django_restit-4.2.73}/inbox/migrations/0001_initial.py +0 -0
  85. {django_restit-4.2.72 → django_restit-4.2.73}/inbox/migrations/0002_alter_message_cc.py +0 -0
  86. {django_restit-4.2.72 → django_restit-4.2.73}/inbox/migrations/0003_attachment_content_type.py +0 -0
  87. {django_restit-4.2.72 → django_restit-4.2.73}/inbox/migrations/0004_mailtemplate.py +0 -0
  88. {django_restit-4.2.72 → django_restit-4.2.73}/inbox/migrations/__init__.py +0 -0
  89. {django_restit-4.2.72 → django_restit-4.2.73}/inbox/models/__init__.py +0 -0
  90. {django_restit-4.2.72 → django_restit-4.2.73}/inbox/models/bounce.py +0 -0
  91. {django_restit-4.2.72 → django_restit-4.2.73}/inbox/models/complaint.py +0 -0
  92. {django_restit-4.2.72 → django_restit-4.2.73}/inbox/models/message.py +0 -0
  93. {django_restit-4.2.72 → django_restit-4.2.73}/inbox/models/template.py +0 -0
  94. {django_restit-4.2.72 → django_restit-4.2.73}/inbox/rpc.py +0 -0
  95. {django_restit-4.2.72 → django_restit-4.2.73}/inbox/utils/__init__.py +0 -0
  96. {django_restit-4.2.72 → django_restit-4.2.73}/inbox/utils/parsing.py +0 -0
  97. {django_restit-4.2.72 → django_restit-4.2.73}/inbox/utils/render.py +0 -0
  98. {django_restit-4.2.72 → django_restit-4.2.73}/inbox/utils/sending.py +0 -0
  99. {django_restit-4.2.72 → django_restit-4.2.73}/incident/README.md +0 -0
  100. {django_restit-4.2.72 → django_restit-4.2.73}/incident/__init__.py +0 -0
  101. {django_restit-4.2.72 → django_restit-4.2.73}/incident/migrations/0001_initial.py +0 -0
  102. {django_restit-4.2.72 → django_restit-4.2.73}/incident/migrations/0002_event_component_event_component_id.py +0 -0
  103. {django_restit-4.2.72 → django_restit-4.2.73}/incident/migrations/0003_rule_action.py +0 -0
  104. {django_restit-4.2.72 → django_restit-4.2.73}/incident/migrations/0004_serverossecalert_ssh_sig_alter_rulecheck_parent.py +0 -0
  105. {django_restit-4.2.72 → django_restit-4.2.73}/incident/migrations/0005_incident_component_alter_incident_state.py +0 -0
  106. {django_restit-4.2.72 → django_restit-4.2.73}/incident/migrations/0006_delete_eventmetadata.py +0 -0
  107. {django_restit-4.2.72 → django_restit-4.2.73}/incident/migrations/0007_event_metadata.py +0 -0
  108. {django_restit-4.2.72 → django_restit-4.2.73}/incident/migrations/0008_incident_action_sent_incident_hostname_and_more.py +0 -0
  109. {django_restit-4.2.72 → django_restit-4.2.73}/incident/migrations/0009_incident_reporter_ip.py +0 -0
  110. {django_restit-4.2.72 → django_restit-4.2.73}/incident/migrations/0010_incident_category_incident_component_id.py +0 -0
  111. {django_restit-4.2.72 → django_restit-4.2.73}/incident/migrations/0011_ticket.py +0 -0
  112. {django_restit-4.2.72 → django_restit-4.2.73}/incident/migrations/0012_rule_match_by.py +0 -0
  113. {django_restit-4.2.72 → django_restit-4.2.73}/incident/migrations/0013_rulecheck_is_required.py +0 -0
  114. {django_restit-4.2.72 → django_restit-4.2.73}/incident/migrations/0014_event_group_alter_rulecheck_index.py +0 -0
  115. {django_restit-4.2.72 → django_restit-4.2.73}/incident/migrations/__init__.py +0 -0
  116. {django_restit-4.2.72 → django_restit-4.2.73}/incident/models/__init__.py +0 -0
  117. {django_restit-4.2.72 → django_restit-4.2.73}/incident/models/event.py +0 -0
  118. {django_restit-4.2.72 → django_restit-4.2.73}/incident/models/incident.py +0 -0
  119. {django_restit-4.2.72 → django_restit-4.2.73}/incident/models/ossec.py +0 -0
  120. {django_restit-4.2.72 → django_restit-4.2.73}/incident/models/ticket.py +0 -0
  121. {django_restit-4.2.72 → django_restit-4.2.73}/incident/parsers/__init__.py +0 -0
  122. {django_restit-4.2.72 → django_restit-4.2.73}/incident/parsers/ossec.py +0 -0
  123. {django_restit-4.2.72 → django_restit-4.2.73}/incident/periodic.py +0 -0
  124. {django_restit-4.2.72 → django_restit-4.2.73}/incident/rpc.py +0 -0
  125. {django_restit-4.2.72 → django_restit-4.2.73}/incident/templates/email/incident_change.html +0 -0
  126. {django_restit-4.2.72 → django_restit-4.2.73}/incident/templates/email/incident_msg.html +0 -0
  127. {django_restit-4.2.72 → django_restit-4.2.73}/incident/templates/email/incident_new.html +0 -0
  128. {django_restit-4.2.72 → django_restit-4.2.73}/incident/templates/email/incident_plain.html +0 -0
  129. {django_restit-4.2.72 → django_restit-4.2.73}/incident/tq.py +0 -0
  130. {django_restit-4.2.72 → django_restit-4.2.73}/location/__init__.py +0 -0
  131. {django_restit-4.2.72 → django_restit-4.2.73}/location/admin.py +0 -0
  132. {django_restit-4.2.72 → django_restit-4.2.73}/location/geolocate.py +0 -0
  133. {django_restit-4.2.72 → django_restit-4.2.73}/location/migrations/0001_initial.py +0 -0
  134. {django_restit-4.2.72 → django_restit-4.2.73}/location/migrations/0002_geoip_subnet_alter_geoip_ip.py +0 -0
  135. {django_restit-4.2.72 → django_restit-4.2.73}/location/migrations/0003_address_postalcode_suffix.py +0 -0
  136. {django_restit-4.2.72 → django_restit-4.2.73}/location/migrations/0004_remove_address_modified_by_address_group_and_more.py +0 -0
  137. {django_restit-4.2.72 → django_restit-4.2.73}/location/migrations/__init__.py +0 -0
  138. {django_restit-4.2.72 → django_restit-4.2.73}/location/models/__init__.py +0 -0
  139. {django_restit-4.2.72 → django_restit-4.2.73}/location/models/address.py +0 -0
  140. {django_restit-4.2.72 → django_restit-4.2.73}/location/models/ip.py +0 -0
  141. {django_restit-4.2.72 → django_restit-4.2.73}/location/models/legacy.py +0 -0
  142. {django_restit-4.2.72 → django_restit-4.2.73}/location/models/location.py +0 -0
  143. {django_restit-4.2.72 → django_restit-4.2.73}/location/models/track.py +0 -0
  144. {django_restit-4.2.72 → django_restit-4.2.73}/location/providers/__init__.py +0 -0
  145. {django_restit-4.2.72 → django_restit-4.2.73}/location/providers/iplookup/__init__.py +0 -0
  146. {django_restit-4.2.72 → django_restit-4.2.73}/location/providers/iplookup/abstractapi.py +0 -0
  147. {django_restit-4.2.72 → django_restit-4.2.73}/location/providers/iplookup/extremeip.py +0 -0
  148. {django_restit-4.2.72 → django_restit-4.2.73}/location/providers/iplookup/geoplugin.py +0 -0
  149. {django_restit-4.2.72 → django_restit-4.2.73}/location/providers/iplookup/ipapi.py +0 -0
  150. {django_restit-4.2.72 → django_restit-4.2.73}/location/providers/iplookup/ipinfo.py +0 -0
  151. {django_restit-4.2.72 → django_restit-4.2.73}/location/providers/iplookup/restit.py +0 -0
  152. {django_restit-4.2.72 → django_restit-4.2.73}/location/providers/location/__init__.py +0 -0
  153. {django_restit-4.2.72 → django_restit-4.2.73}/location/providers/location/google.py +0 -0
  154. {django_restit-4.2.72 → django_restit-4.2.73}/location/providers/timezones/__init__.py +0 -0
  155. {django_restit-4.2.72 → django_restit-4.2.73}/location/providers/timezones/google.py +0 -0
  156. {django_restit-4.2.72 → django_restit-4.2.73}/location/providers/zillow.py +0 -0
  157. {django_restit-4.2.72 → django_restit-4.2.73}/location/rpc/__init__.py +0 -0
  158. {django_restit-4.2.72 → django_restit-4.2.73}/location/rpc/address.py +0 -0
  159. {django_restit-4.2.72 → django_restit-4.2.73}/location/rpc/ip.py +0 -0
  160. {django_restit-4.2.72 → django_restit-4.2.73}/location/rpc/location.py +0 -0
  161. {django_restit-4.2.72 → django_restit-4.2.73}/location/rpc/track.py +0 -0
  162. {django_restit-4.2.72 → django_restit-4.2.73}/medialib/__init__.py +0 -0
  163. {django_restit-4.2.72 → django_restit-4.2.73}/medialib/admin.py +0 -0
  164. {django_restit-4.2.72 → django_restit-4.2.73}/medialib/cvutil/__init__.py +0 -0
  165. {django_restit-4.2.72 → django_restit-4.2.73}/medialib/cvutil/contours.py +0 -0
  166. {django_restit-4.2.72 → django_restit-4.2.73}/medialib/cvutil/images.py +0 -0
  167. {django_restit-4.2.72 → django_restit-4.2.73}/medialib/cvutil/misc.py +0 -0
  168. {django_restit-4.2.72 → django_restit-4.2.73}/medialib/cvutil/text.py +0 -0
  169. {django_restit-4.2.72 → django_restit-4.2.73}/medialib/fixtures/initial_data.json +0 -0
  170. {django_restit-4.2.72 → django_restit-4.2.73}/medialib/fixtures/medialib.json +0 -0
  171. {django_restit-4.2.72 → django_restit-4.2.73}/medialib/fixtures/medialib_test_fixture.json +0 -0
  172. {django_restit-4.2.72 → django_restit-4.2.73}/medialib/forms.py +0 -0
  173. {django_restit-4.2.72 → django_restit-4.2.73}/medialib/migrations/0001_initial.py +0 -0
  174. {django_restit-4.2.72 → django_restit-4.2.73}/medialib/migrations/__init__.py +0 -0
  175. {django_restit-4.2.72 → django_restit-4.2.73}/medialib/models.py +0 -0
  176. {django_restit-4.2.72 → django_restit-4.2.73}/medialib/ocr.py +0 -0
  177. {django_restit-4.2.72 → django_restit-4.2.73}/medialib/pdf.py +0 -0
  178. {django_restit-4.2.72 → django_restit-4.2.73}/medialib/qrcode.py +0 -0
  179. {django_restit-4.2.72 → django_restit-4.2.73}/medialib/render/__init__.py +0 -0
  180. {django_restit-4.2.72 → django_restit-4.2.73}/medialib/render/engines/__init__.py +0 -0
  181. {django_restit-4.2.72 → django_restit-4.2.73}/medialib/render/engines/anigif.py +0 -0
  182. {django_restit-4.2.72 → django_restit-4.2.73}/medialib/render/engines/ffmpeg.py +0 -0
  183. {django_restit-4.2.72 → django_restit-4.2.73}/medialib/render/engines/gifsicle.py +0 -0
  184. {django_restit-4.2.72 → django_restit-4.2.73}/medialib/render/engines/hls.py +0 -0
  185. {django_restit-4.2.72 → django_restit-4.2.73}/medialib/render/engines/mp4box.py +0 -0
  186. {django_restit-4.2.72 → django_restit-4.2.73}/medialib/render/engines/rtmp/Makefile +0 -0
  187. {django_restit-4.2.72 → django_restit-4.2.73}/medialib/render/engines/rtmp/__init__.py +0 -0
  188. {django_restit-4.2.72 → django_restit-4.2.73}/medialib/render/engines/rtmp/rtmp.i +0 -0
  189. {django_restit-4.2.72 → django_restit-4.2.73}/medialib/render/engines/rtmpdump.py +0 -0
  190. {django_restit-4.2.72 → django_restit-4.2.73}/medialib/render/engines/rtmpsink.py +0 -0
  191. {django_restit-4.2.72 → django_restit-4.2.73}/medialib/render/engines/video_getinfo.py +0 -0
  192. {django_restit-4.2.72 → django_restit-4.2.73}/medialib/render/engines/websnap.py +0 -0
  193. {django_restit-4.2.72 → django_restit-4.2.73}/medialib/render/exceptions.py +0 -0
  194. {django_restit-4.2.72 → django_restit-4.2.73}/medialib/render/presets/__init__.py +0 -0
  195. {django_restit-4.2.72 → django_restit-4.2.73}/medialib/render/presets/akamai.py +0 -0
  196. {django_restit-4.2.72 → django_restit-4.2.73}/medialib/render/presets/animated_thumbnail.py +0 -0
  197. {django_restit-4.2.72 → django_restit-4.2.73}/medialib/render/presets/ffmpeg.py +0 -0
  198. {django_restit-4.2.72 → django_restit-4.2.73}/medialib/render/presets/flv.py +0 -0
  199. {django_restit-4.2.72 → django_restit-4.2.73}/medialib/render/presets/hls.py +0 -0
  200. {django_restit-4.2.72 → django_restit-4.2.73}/medialib/render/presets/image_transcode.py +0 -0
  201. {django_restit-4.2.72 → django_restit-4.2.73}/medialib/render/presets/image_validate.py +0 -0
  202. {django_restit-4.2.72 → django_restit-4.2.73}/medialib/render/presets/mp4.py +0 -0
  203. {django_restit-4.2.72 → django_restit-4.2.73}/medialib/render/presets/video_still.py +0 -0
  204. {django_restit-4.2.72 → django_restit-4.2.73}/medialib/render/presets/video_validate.py +0 -0
  205. {django_restit-4.2.72 → django_restit-4.2.73}/medialib/render/presets/websnap.py +0 -0
  206. {django_restit-4.2.72 → django_restit-4.2.73}/medialib/render/presets/youtube.py +0 -0
  207. {django_restit-4.2.72 → django_restit-4.2.73}/medialib/render/render_utils.py +0 -0
  208. {django_restit-4.2.72 → django_restit-4.2.73}/medialib/render/schedule.py +0 -0
  209. {django_restit-4.2.72 → django_restit-4.2.73}/medialib/rpc/__init__.py +0 -0
  210. {django_restit-4.2.72 → django_restit-4.2.73}/medialib/rpc/legacy.py +0 -0
  211. {django_restit-4.2.72 → django_restit-4.2.73}/medialib/rpc/media.py +0 -0
  212. {django_restit-4.2.72 → django_restit-4.2.73}/medialib/rpc/tools.py +0 -0
  213. {django_restit-4.2.72 → django_restit-4.2.73}/medialib/scripts/init_config +0 -0
  214. {django_restit-4.2.72 → django_restit-4.2.73}/medialib/static/css/base_medialibui.css +0 -0
  215. {django_restit-4.2.72 → django_restit-4.2.73}/medialib/static/css/base_widgets.css +0 -0
  216. {django_restit-4.2.72 → django_restit-4.2.73}/medialib/static/css/jquery.jcrop.css +0 -0
  217. {django_restit-4.2.72 → django_restit-4.2.73}/medialib/static/img/arrow-down-white.png +0 -0
  218. {django_restit-4.2.72 → django_restit-4.2.73}/medialib/static/img/bg-body.gif +0 -0
  219. {django_restit-4.2.72 → django_restit-4.2.73}/medialib/static/img/cancel.gif +0 -0
  220. {django_restit-4.2.72 → django_restit-4.2.73}/medialib/static/img/icon-generic.gif +0 -0
  221. {django_restit-4.2.72 → django_restit-4.2.73}/medialib/static/img/icon-image.gif +0 -0
  222. {django_restit-4.2.72 → django_restit-4.2.73}/medialib/static/img/icon-media.gif +0 -0
  223. {django_restit-4.2.72 → django_restit-4.2.73}/medialib/static/img/icon-zip.gif +0 -0
  224. {django_restit-4.2.72 → django_restit-4.2.73}/medialib/static/img/loading.gif +0 -0
  225. {django_restit-4.2.72 → django_restit-4.2.73}/medialib/static/img/noimage.gif +0 -0
  226. {django_restit-4.2.72 → django_restit-4.2.73}/medialib/static/img/render_err.gif +0 -0
  227. {django_restit-4.2.72 → django_restit-4.2.73}/medialib/static/img/rendering.gif +0 -0
  228. {django_restit-4.2.72 → django_restit-4.2.73}/medialib/static/img/star_off.png +0 -0
  229. {django_restit-4.2.72 → django_restit-4.2.73}/medialib/static/img/star_on.png +0 -0
  230. {django_restit-4.2.72 → django_restit-4.2.73}/medialib/static/img/unknown.gif +0 -0
  231. {django_restit-4.2.72 → django_restit-4.2.73}/medialib/static/lib/caman.full.js +0 -0
  232. {django_restit-4.2.72 → django_restit-4.2.73}/medialib/static/lib/hammer.min.js +0 -0
  233. {django_restit-4.2.72 → django_restit-4.2.73}/medialib/static/lib/jquery.Jcrop.js +0 -0
  234. {django_restit-4.2.72 → django_restit-4.2.73}/medialib/static/lib/jquery.hammer.js +0 -0
  235. {django_restit-4.2.72 → django_restit-4.2.73}/medialib/static/lib/load-image.min.js +0 -0
  236. {django_restit-4.2.72 → django_restit-4.2.73}/medialib/static/lib/swiper.js +0 -0
  237. {django_restit-4.2.72 → django_restit-4.2.73}/medialib/static/lib/tinymce/plugins/medialib/editor_plugin.js +0 -0
  238. {django_restit-4.2.72 → django_restit-4.2.73}/medialib/static/lib/tinymce/plugins/medialib/editor_plugin_src.js +0 -0
  239. {django_restit-4.2.72 → django_restit-4.2.73}/medialib/static/lib/tinymce/plugins/medialib/js/dialog.js +0 -0
  240. {django_restit-4.2.72 → django_restit-4.2.73}/medialib/static/lib/tinymce/plugins/medialib/medialib.html +0 -0
  241. {django_restit-4.2.72 → django_restit-4.2.73}/medialib/stores/__init__.py +0 -0
  242. {django_restit-4.2.72 → django_restit-4.2.73}/medialib/stores/apiclient/__init__.py +0 -0
  243. {django_restit-4.2.72 → django_restit-4.2.73}/medialib/stores/apiclient/channel.py +0 -0
  244. {django_restit-4.2.72 → django_restit-4.2.73}/medialib/stores/apiclient/discovery.py +0 -0
  245. {django_restit-4.2.72 → django_restit-4.2.73}/medialib/stores/apiclient/errors.py +0 -0
  246. {django_restit-4.2.72 → django_restit-4.2.73}/medialib/stores/apiclient/http.py +0 -0
  247. {django_restit-4.2.72 → django_restit-4.2.73}/medialib/stores/apiclient/mimeparse.py +0 -0
  248. {django_restit-4.2.72 → django_restit-4.2.73}/medialib/stores/apiclient/model.py +0 -0
  249. {django_restit-4.2.72 → django_restit-4.2.73}/medialib/stores/apiclient/sample_tools.py +0 -0
  250. {django_restit-4.2.72 → django_restit-4.2.73}/medialib/stores/apiclient/schema.py +0 -0
  251. {django_restit-4.2.72 → django_restit-4.2.73}/medialib/stores/filestore.py +0 -0
  252. {django_restit-4.2.72 → django_restit-4.2.73}/medialib/stores/httplib2/__init__.py +0 -0
  253. {django_restit-4.2.72 → django_restit-4.2.73}/medialib/stores/httplib2/cacerts.txt +0 -0
  254. {django_restit-4.2.72 → django_restit-4.2.73}/medialib/stores/httplib2/iri2uri.py +0 -0
  255. {django_restit-4.2.72 → django_restit-4.2.73}/medialib/stores/httplib2/socks.py +0 -0
  256. {django_restit-4.2.72 → django_restit-4.2.73}/medialib/stores/httpstore.py +0 -0
  257. {django_restit-4.2.72 → django_restit-4.2.73}/medialib/stores/nullstore.py +0 -0
  258. {django_restit-4.2.72 → django_restit-4.2.73}/medialib/stores/oauth2client/__init__.py +0 -0
  259. {django_restit-4.2.72 → django_restit-4.2.73}/medialib/stores/oauth2client/anyjson.py +0 -0
  260. {django_restit-4.2.72 → django_restit-4.2.73}/medialib/stores/oauth2client/appengine.py +0 -0
  261. {django_restit-4.2.72 → django_restit-4.2.73}/medialib/stores/oauth2client/client.py +0 -0
  262. {django_restit-4.2.72 → django_restit-4.2.73}/medialib/stores/oauth2client/clientsecrets.py +0 -0
  263. {django_restit-4.2.72 → django_restit-4.2.73}/medialib/stores/oauth2client/crypt.py +0 -0
  264. {django_restit-4.2.72 → django_restit-4.2.73}/medialib/stores/oauth2client/django_orm.py +0 -0
  265. {django_restit-4.2.72 → django_restit-4.2.73}/medialib/stores/oauth2client/file.py +0 -0
  266. {django_restit-4.2.72 → django_restit-4.2.73}/medialib/stores/oauth2client/gce.py +0 -0
  267. {django_restit-4.2.72 → django_restit-4.2.73}/medialib/stores/oauth2client/keyring_storage.py +0 -0
  268. {django_restit-4.2.72 → django_restit-4.2.73}/medialib/stores/oauth2client/locked_file.py +0 -0
  269. {django_restit-4.2.72 → django_restit-4.2.73}/medialib/stores/oauth2client/multistore_file.py +0 -0
  270. {django_restit-4.2.72 → django_restit-4.2.73}/medialib/stores/oauth2client/old_run.py +0 -0
  271. {django_restit-4.2.72 → django_restit-4.2.73}/medialib/stores/oauth2client/tools.py +0 -0
  272. {django_restit-4.2.72 → django_restit-4.2.73}/medialib/stores/oauth2client/util.py +0 -0
  273. {django_restit-4.2.72 → django_restit-4.2.73}/medialib/stores/oauth2client/xsrfutil.py +0 -0
  274. {django_restit-4.2.72 → django_restit-4.2.73}/medialib/stores/rtmpstore.py +0 -0
  275. {django_restit-4.2.72 → django_restit-4.2.73}/medialib/stores/s3store.py +0 -0
  276. {django_restit-4.2.72 → django_restit-4.2.73}/medialib/stores/uritemplate/__init__.py +0 -0
  277. {django_restit-4.2.72 → django_restit-4.2.73}/medialib/stores/youtubestore.py +0 -0
  278. {django_restit-4.2.72 → django_restit-4.2.73}/medialib/templates/medialib/base.html +0 -0
  279. {django_restit-4.2.72 → django_restit-4.2.73}/medialib/templates/medialib/instances.html +0 -0
  280. {django_restit-4.2.72 → django_restit-4.2.73}/medialib/templates/medialib/items.html +0 -0
  281. {django_restit-4.2.72 → django_restit-4.2.73}/medialib/templates/medialib/library.html +0 -0
  282. {django_restit-4.2.72 → django_restit-4.2.73}/medialib/templates/medialib/notify_error.subject +0 -0
  283. {django_restit-4.2.72 → django_restit-4.2.73}/medialib/templates/medialib/notify_error.to +0 -0
  284. {django_restit-4.2.72 → django_restit-4.2.73}/medialib/templates/medialib/notify_error.txt +0 -0
  285. {django_restit-4.2.72 → django_restit-4.2.73}/medialib/templates/medialib/notify_ready.subject +0 -0
  286. {django_restit-4.2.72 → django_restit-4.2.73}/medialib/templates/medialib/notify_ready.to +0 -0
  287. {django_restit-4.2.72 → django_restit-4.2.73}/medialib/templates/medialib/notify_ready.txt +0 -0
  288. {django_restit-4.2.72 → django_restit-4.2.73}/medialib/templates/medialib/notify_render_error.subject +0 -0
  289. {django_restit-4.2.72 → django_restit-4.2.73}/medialib/templates/medialib/notify_render_error.to +0 -0
  290. {django_restit-4.2.72 → django_restit-4.2.73}/medialib/templates/medialib/notify_render_error.txt +0 -0
  291. {django_restit-4.2.72 → django_restit-4.2.73}/medialib/templates/medialib/notify_validate_error.subject +0 -0
  292. {django_restit-4.2.72 → django_restit-4.2.73}/medialib/templates/medialib/notify_validate_error.to +0 -0
  293. {django_restit-4.2.72 → django_restit-4.2.73}/medialib/templates/medialib/notify_validate_error.txt +0 -0
  294. {django_restit-4.2.72 → django_restit-4.2.73}/medialib/templates/medialib/smil +0 -0
  295. {django_restit-4.2.72 → django_restit-4.2.73}/medialib/templates/medialib/test.html +0 -0
  296. {django_restit-4.2.72 → django_restit-4.2.73}/medialib/templates/medialib/testpicker.html +0 -0
  297. {django_restit-4.2.72 → django_restit-4.2.73}/medialib/tests.py +0 -0
  298. {django_restit-4.2.72 → django_restit-4.2.73}/medialib/tq.py +0 -0
  299. {django_restit-4.2.72 → django_restit-4.2.73}/medialib/urls.py +0 -0
  300. {django_restit-4.2.72 → django_restit-4.2.73}/medialib/utils.py +0 -0
  301. {django_restit-4.2.72 → django_restit-4.2.73}/medialib/views.py +0 -0
  302. {django_restit-4.2.72 → django_restit-4.2.73}/medialib/youtube/__init__.py +0 -0
  303. {django_restit-4.2.72 → django_restit-4.2.73}/medialib/youtube/apiclient/__init__.py +0 -0
  304. {django_restit-4.2.72 → django_restit-4.2.73}/medialib/youtube/apiclient/channel.py +0 -0
  305. {django_restit-4.2.72 → django_restit-4.2.73}/medialib/youtube/apiclient/discovery.py +0 -0
  306. {django_restit-4.2.72 → django_restit-4.2.73}/medialib/youtube/apiclient/errors.py +0 -0
  307. {django_restit-4.2.72 → django_restit-4.2.73}/medialib/youtube/apiclient/http.py +0 -0
  308. {django_restit-4.2.72 → django_restit-4.2.73}/medialib/youtube/apiclient/mimeparse.py +0 -0
  309. {django_restit-4.2.72 → django_restit-4.2.73}/medialib/youtube/apiclient/model.py +0 -0
  310. {django_restit-4.2.72 → django_restit-4.2.73}/medialib/youtube/apiclient/sample_tools.py +0 -0
  311. {django_restit-4.2.72 → django_restit-4.2.73}/medialib/youtube/apiclient/schema.py +0 -0
  312. {django_restit-4.2.72 → django_restit-4.2.73}/medialib/youtube/httplib2/__init__.py +0 -0
  313. {django_restit-4.2.72 → django_restit-4.2.73}/medialib/youtube/httplib2/cacerts.txt +0 -0
  314. {django_restit-4.2.72 → django_restit-4.2.73}/medialib/youtube/httplib2/iri2uri.py +0 -0
  315. {django_restit-4.2.72 → django_restit-4.2.73}/medialib/youtube/httplib2/socks.py +0 -0
  316. {django_restit-4.2.72 → django_restit-4.2.73}/medialib/youtube/oauth2client/__init__.py +0 -0
  317. {django_restit-4.2.72 → django_restit-4.2.73}/medialib/youtube/oauth2client/anyjson.py +0 -0
  318. {django_restit-4.2.72 → django_restit-4.2.73}/medialib/youtube/oauth2client/appengine.py +0 -0
  319. {django_restit-4.2.72 → django_restit-4.2.73}/medialib/youtube/oauth2client/client.py +0 -0
  320. {django_restit-4.2.72 → django_restit-4.2.73}/medialib/youtube/oauth2client/clientsecrets.py +0 -0
  321. {django_restit-4.2.72 → django_restit-4.2.73}/medialib/youtube/oauth2client/crypt.py +0 -0
  322. {django_restit-4.2.72 → django_restit-4.2.73}/medialib/youtube/oauth2client/django_orm.py +0 -0
  323. {django_restit-4.2.72 → django_restit-4.2.73}/medialib/youtube/oauth2client/file.py +0 -0
  324. {django_restit-4.2.72 → django_restit-4.2.73}/medialib/youtube/oauth2client/gce.py +0 -0
  325. {django_restit-4.2.72 → django_restit-4.2.73}/medialib/youtube/oauth2client/keyring_storage.py +0 -0
  326. {django_restit-4.2.72 → django_restit-4.2.73}/medialib/youtube/oauth2client/locked_file.py +0 -0
  327. {django_restit-4.2.72 → django_restit-4.2.73}/medialib/youtube/oauth2client/multistore_file.py +0 -0
  328. {django_restit-4.2.72 → django_restit-4.2.73}/medialib/youtube/oauth2client/old_run.py +0 -0
  329. {django_restit-4.2.72 → django_restit-4.2.73}/medialib/youtube/oauth2client/tools.py +0 -0
  330. {django_restit-4.2.72 → django_restit-4.2.73}/medialib/youtube/oauth2client/util.py +0 -0
  331. {django_restit-4.2.72 → django_restit-4.2.73}/medialib/youtube/oauth2client/xsrfutil.py +0 -0
  332. {django_restit-4.2.72 → django_restit-4.2.73}/medialib/youtube/upload.py +0 -0
  333. {django_restit-4.2.72 → django_restit-4.2.73}/medialib/youtube/uritemplate/__init__.py +0 -0
  334. {django_restit-4.2.72 → django_restit-4.2.73}/metrics/README.md +0 -0
  335. {django_restit-4.2.72 → django_restit-4.2.73}/metrics/__init__.py +0 -0
  336. {django_restit-4.2.72 → django_restit-4.2.73}/metrics/client.py +0 -0
  337. {django_restit-4.2.72 → django_restit-4.2.73}/metrics/eod.py +0 -0
  338. {django_restit-4.2.72 → django_restit-4.2.73}/metrics/examples/eod_example.py +0 -0
  339. {django_restit-4.2.72 → django_restit-4.2.73}/metrics/management/__init__.py +0 -0
  340. {django_restit-4.2.72 → django_restit-4.2.73}/metrics/management/commands/__init__.py +0 -0
  341. {django_restit-4.2.72 → django_restit-4.2.73}/metrics/management/commands/delete_gauge.py +0 -0
  342. {django_restit-4.2.72 → django_restit-4.2.73}/metrics/management/commands/delete_metric.py +0 -0
  343. {django_restit-4.2.72 → django_restit-4.2.73}/metrics/management/commands/fix_redis_metrics_keys.py +0 -0
  344. {django_restit-4.2.72 → django_restit-4.2.73}/metrics/management/commands/generate_test_metrics.py +0 -0
  345. {django_restit-4.2.72 → django_restit-4.2.73}/metrics/management/commands/redis_metrics_send_mail.py +0 -0
  346. {django_restit-4.2.72 → django_restit-4.2.73}/metrics/management/commands/reset_weekly_metrics.py +0 -0
  347. {django_restit-4.2.72 → django_restit-4.2.73}/metrics/management/commands/system_metric.py +0 -0
  348. {django_restit-4.2.72 → django_restit-4.2.73}/metrics/migrations/0001_initial.py +0 -0
  349. {django_restit-4.2.72 → django_restit-4.2.73}/metrics/migrations/0002_metrics_k11_metrics_k12_metrics_k13_metrics_k14_and_more.py +0 -0
  350. {django_restit-4.2.72 → django_restit-4.2.73}/metrics/migrations/0003_metrics_expires.py +0 -0
  351. {django_restit-4.2.72 → django_restit-4.2.73}/metrics/migrations/0004_eodmetrics.py +0 -0
  352. {django_restit-4.2.72 → django_restit-4.2.73}/metrics/migrations/0005_alter_metrics_v1_alter_metrics_v10_alter_metrics_v11_and_more.py +0 -0
  353. {django_restit-4.2.72 → django_restit-4.2.73}/metrics/migrations/__init__.py +0 -0
  354. {django_restit-4.2.72 → django_restit-4.2.73}/metrics/models.py +0 -0
  355. {django_restit-4.2.72 → django_restit-4.2.73}/metrics/periodic.py +0 -0
  356. {django_restit-4.2.72 → django_restit-4.2.73}/metrics/providers/__init__.py +0 -0
  357. {django_restit-4.2.72 → django_restit-4.2.73}/metrics/providers/aws.py +0 -0
  358. {django_restit-4.2.72 → django_restit-4.2.73}/metrics/rpc.py +0 -0
  359. {django_restit-4.2.72 → django_restit-4.2.73}/metrics/settings.py +0 -0
  360. {django_restit-4.2.72 → django_restit-4.2.73}/metrics/utils.py +0 -0
  361. {django_restit-4.2.72 → django_restit-4.2.73}/pushit/__init__.py +0 -0
  362. {django_restit-4.2.72 → django_restit-4.2.73}/pushit/admin.py +0 -0
  363. {django_restit-4.2.72 → django_restit-4.2.73}/pushit/migrations/0001_initial.py +0 -0
  364. {django_restit-4.2.72 → django_restit-4.2.73}/pushit/migrations/__init__.py +0 -0
  365. {django_restit-4.2.72 → django_restit-4.2.73}/pushit/models.py +0 -0
  366. {django_restit-4.2.72 → django_restit-4.2.73}/pushit/rpc/__init__.py +0 -0
  367. {django_restit-4.2.72 → django_restit-4.2.73}/pushit/rpc/githooks.py +0 -0
  368. {django_restit-4.2.72 → django_restit-4.2.73}/pushit/rpc/legacy.py +0 -0
  369. {django_restit-4.2.72 → django_restit-4.2.73}/pushit/rpc/products.py +0 -0
  370. {django_restit-4.2.72 → django_restit-4.2.73}/pushit/static/js/models_pushit.js +0 -0
  371. {django_restit-4.2.72 → django_restit-4.2.73}/pushit/tq.py +0 -0
  372. {django_restit-4.2.72 → django_restit-4.2.73}/pushit/utils.py +0 -0
  373. {django_restit-4.2.72 → django_restit-4.2.73}/rest/.gitignore +0 -0
  374. {django_restit-4.2.72 → django_restit-4.2.73}/rest/README.md +0 -0
  375. {django_restit-4.2.72 → django_restit-4.2.73}/rest/RemoteEvents.py +0 -0
  376. {django_restit-4.2.72 → django_restit-4.2.73}/rest/__init__.py +0 -0
  377. {django_restit-4.2.72 → django_restit-4.2.73}/rest/arc4.py +0 -0
  378. {django_restit-4.2.72 → django_restit-4.2.73}/rest/cache.py +0 -0
  379. {django_restit-4.2.72 → django_restit-4.2.73}/rest/crypto/__init__.py +0 -0
  380. {django_restit-4.2.72 → django_restit-4.2.73}/rest/crypto/aes.py +0 -0
  381. {django_restit-4.2.72 → django_restit-4.2.73}/rest/crypto/privpub.py +0 -0
  382. {django_restit-4.2.72 → django_restit-4.2.73}/rest/crypto/util.py +0 -0
  383. {django_restit-4.2.72 → django_restit-4.2.73}/rest/datem.py +0 -0
  384. {django_restit-4.2.72 → django_restit-4.2.73}/rest/decorators.py +0 -0
  385. {django_restit-4.2.72 → django_restit-4.2.73}/rest/encryption.py +0 -0
  386. {django_restit-4.2.72 → django_restit-4.2.73}/rest/errors.py +0 -0
  387. {django_restit-4.2.72 → django_restit-4.2.73}/rest/extra/__init__.py +0 -0
  388. {django_restit-4.2.72 → django_restit-4.2.73}/rest/extra/json_metadata.py +0 -0
  389. {django_restit-4.2.72 → django_restit-4.2.73}/rest/fields.py +0 -0
  390. {django_restit-4.2.72 → django_restit-4.2.73}/rest/forms.py +0 -0
  391. {django_restit-4.2.72 → django_restit-4.2.73}/rest/helpers.py +0 -0
  392. {django_restit-4.2.72 → django_restit-4.2.73}/rest/joke.py +0 -0
  393. {django_restit-4.2.72 → django_restit-4.2.73}/rest/jwtoken.py +0 -0
  394. {django_restit-4.2.72 → django_restit-4.2.73}/rest/log.py +0 -0
  395. {django_restit-4.2.72 → django_restit-4.2.73}/rest/mail.py +0 -0
  396. {django_restit-4.2.72 → django_restit-4.2.73}/rest/mailman.py +0 -0
  397. {django_restit-4.2.72 → django_restit-4.2.73}/rest/management/__init__.py +0 -0
  398. {django_restit-4.2.72 → django_restit-4.2.73}/rest/management/commands/__init__.py +0 -0
  399. {django_restit-4.2.72 → django_restit-4.2.73}/rest/management/commands/rpc.py +0 -0
  400. {django_restit-4.2.72 → django_restit-4.2.73}/rest/middleware/__init__.py +0 -0
  401. {django_restit-4.2.72 → django_restit-4.2.73}/rest/middleware/cors.py +0 -0
  402. {django_restit-4.2.72 → django_restit-4.2.73}/rest/middleware/db_router.py +0 -0
  403. {django_restit-4.2.72 → django_restit-4.2.73}/rest/middleware/jwt.py +0 -0
  404. {django_restit-4.2.72 → django_restit-4.2.73}/rest/middleware/request.py +0 -0
  405. {django_restit-4.2.72 → django_restit-4.2.73}/rest/middleware/session.py +0 -0
  406. {django_restit-4.2.72 → django_restit-4.2.73}/rest/middleware/session_store.py +0 -0
  407. {django_restit-4.2.72 → django_restit-4.2.73}/rest/models/__init__.py +0 -0
  408. {django_restit-4.2.72 → django_restit-4.2.73}/rest/models/cacher.py +0 -0
  409. {django_restit-4.2.72 → django_restit-4.2.73}/rest/models/metadata.py +0 -0
  410. {django_restit-4.2.72 → django_restit-4.2.73}/rest/net.py +0 -0
  411. {django_restit-4.2.72 → django_restit-4.2.73}/rest/regexes.yaml +0 -0
  412. {django_restit-4.2.72 → django_restit-4.2.73}/rest/requestex.py +0 -0
  413. {django_restit-4.2.72 → django_restit-4.2.73}/rest/rpc.py +0 -0
  414. {django_restit-4.2.72 → django_restit-4.2.73}/rest/search.py +0 -0
  415. {django_restit-4.2.72 → django_restit-4.2.73}/rest/serializers/__init__.py +0 -0
  416. {django_restit-4.2.72 → django_restit-4.2.73}/rest/serializers/collection.py +0 -0
  417. {django_restit-4.2.72 → django_restit-4.2.73}/rest/serializers/csv.py +0 -0
  418. {django_restit-4.2.72 → django_restit-4.2.73}/rest/serializers/excel.py +0 -0
  419. {django_restit-4.2.72 → django_restit-4.2.73}/rest/serializers/json.py +0 -0
  420. {django_restit-4.2.72 → django_restit-4.2.73}/rest/serializers/legacy.py +0 -0
  421. {django_restit-4.2.72 → django_restit-4.2.73}/rest/serializers/localizers.py +0 -0
  422. {django_restit-4.2.72 → django_restit-4.2.73}/rest/serializers/model.py +0 -0
  423. {django_restit-4.2.72 → django_restit-4.2.73}/rest/serializers/profiler.py +0 -0
  424. {django_restit-4.2.72 → django_restit-4.2.73}/rest/serializers/response.py +0 -0
  425. {django_restit-4.2.72 → django_restit-4.2.73}/rest/serializers/util.py +0 -0
  426. {django_restit-4.2.72 → django_restit-4.2.73}/rest/settings_helper.py +0 -0
  427. {django_restit-4.2.72 → django_restit-4.2.73}/rest/ssl_check.py +0 -0
  428. {django_restit-4.2.72 → django_restit-4.2.73}/rest/static/lib/jquery.js +0 -0
  429. {django_restit-4.2.72 → django_restit-4.2.73}/rest/static/rest/app.css +0 -0
  430. {django_restit-4.2.72 → django_restit-4.2.73}/rest/static/rest/app.js +0 -0
  431. {django_restit-4.2.72 → django_restit-4.2.73}/rest/static/rest/rest.js +0 -0
  432. {django_restit-4.2.72 → django_restit-4.2.73}/rest/static/rest/rest.scss +0 -0
  433. {django_restit-4.2.72 → django_restit-4.2.73}/rest/templates/email/error.html +0 -0
  434. {django_restit-4.2.72 → django_restit-4.2.73}/rest/templates/email/error.subject +0 -0
  435. {django_restit-4.2.72 → django_restit-4.2.73}/rest/templates/rest_docs.html +0 -0
  436. {django_restit-4.2.72 → django_restit-4.2.73}/rest/templates/rest_html.html +0 -0
  437. {django_restit-4.2.72 → django_restit-4.2.73}/rest/ua.py +0 -0
  438. {django_restit-4.2.72 → django_restit-4.2.73}/rest/uberdict.py +0 -0
  439. {django_restit-4.2.72 → django_restit-4.2.73}/rest/url_docs.py +0 -0
  440. {django_restit-4.2.72 → django_restit-4.2.73}/rest/urls.py +0 -0
  441. {django_restit-4.2.72 → django_restit-4.2.73}/rest/views.py +0 -0
  442. {django_restit-4.2.72 → django_restit-4.2.73}/sessionlog/.gitignore +0 -0
  443. {django_restit-4.2.72 → django_restit-4.2.73}/sessionlog/README.md +0 -0
  444. {django_restit-4.2.72 → django_restit-4.2.73}/sessionlog/__init__.py +0 -0
  445. {django_restit-4.2.72 → django_restit-4.2.73}/sessionlog/admin.py +0 -0
  446. {django_restit-4.2.72 → django_restit-4.2.73}/sessionlog/migrations/0001_initial.py +0 -0
  447. {django_restit-4.2.72 → django_restit-4.2.73}/sessionlog/migrations/__init__.py +0 -0
  448. {django_restit-4.2.72 → django_restit-4.2.73}/sessionlog/models.py +0 -0
  449. {django_restit-4.2.72 → django_restit-4.2.73}/sessionlog/tests.py +0 -0
  450. {django_restit-4.2.72 → django_restit-4.2.73}/sessionlog/views.py +0 -0
  451. {django_restit-4.2.72 → django_restit-4.2.73}/taskqueue/README.md +0 -0
  452. {django_restit-4.2.72 → django_restit-4.2.73}/taskqueue/__init__.py +0 -0
  453. {django_restit-4.2.72 → django_restit-4.2.73}/taskqueue/admin.py +0 -0
  454. {django_restit-4.2.72 → django_restit-4.2.73}/taskqueue/migrations/0001_initial.py +0 -0
  455. {django_restit-4.2.72 → django_restit-4.2.73}/taskqueue/migrations/__init__.py +0 -0
  456. {django_restit-4.2.72 → django_restit-4.2.73}/taskqueue/models.py +0 -0
  457. {django_restit-4.2.72 → django_restit-4.2.73}/taskqueue/periodic.py +0 -0
  458. {django_restit-4.2.72 → django_restit-4.2.73}/taskqueue/rpc.py +0 -0
  459. {django_restit-4.2.72 → django_restit-4.2.73}/taskqueue/tq.py +0 -0
  460. {django_restit-4.2.72 → django_restit-4.2.73}/taskqueue/transports/__init__.py +0 -0
  461. {django_restit-4.2.72 → django_restit-4.2.73}/taskqueue/transports/email.py +0 -0
  462. {django_restit-4.2.72 → django_restit-4.2.73}/taskqueue/transports/http.py +0 -0
  463. {django_restit-4.2.72 → django_restit-4.2.73}/taskqueue/transports/s3.py +0 -0
  464. {django_restit-4.2.72 → django_restit-4.2.73}/taskqueue/transports/sftp.py +0 -0
  465. {django_restit-4.2.72 → django_restit-4.2.73}/taskqueue/transports/sms.py +0 -0
  466. {django_restit-4.2.72 → django_restit-4.2.73}/taskqueue/worker.py +0 -0
  467. {django_restit-4.2.72 → django_restit-4.2.73}/telephony/__init__.py +0 -0
  468. {django_restit-4.2.72 → django_restit-4.2.73}/telephony/admin.py +0 -0
  469. {django_restit-4.2.72 → django_restit-4.2.73}/telephony/decorators.py +0 -0
  470. {django_restit-4.2.72 → django_restit-4.2.73}/telephony/migrations/0001_initial.py +0 -0
  471. {django_restit-4.2.72 → django_restit-4.2.73}/telephony/migrations/0002_alter_sms_sid.py +0 -0
  472. {django_restit-4.2.72 → django_restit-4.2.73}/telephony/migrations/__init__.py +0 -0
  473. {django_restit-4.2.72 → django_restit-4.2.73}/telephony/models.py +0 -0
  474. {django_restit-4.2.72 → django_restit-4.2.73}/telephony/phone_util.py +0 -0
  475. {django_restit-4.2.72 → django_restit-4.2.73}/telephony/rpc.py +0 -0
  476. {django_restit-4.2.72 → django_restit-4.2.73}/wiki/__init__.py +0 -0
  477. {django_restit-4.2.72 → django_restit-4.2.73}/wiki/migrations/0001_initial.py +0 -0
  478. {django_restit-4.2.72 → django_restit-4.2.73}/wiki/migrations/__init__.py +0 -0
  479. {django_restit-4.2.72 → django_restit-4.2.73}/wiki/models/__init__.py +0 -0
  480. {django_restit-4.2.72 → django_restit-4.2.73}/wiki/models/faq.py +0 -0
  481. {django_restit-4.2.72 → django_restit-4.2.73}/wiki/models/page.py +0 -0
  482. {django_restit-4.2.72 → django_restit-4.2.73}/wiki/models/revision.py +0 -0
  483. {django_restit-4.2.72 → django_restit-4.2.73}/wiki/periodic.py +0 -0
  484. {django_restit-4.2.72 → django_restit-4.2.73}/wiki/renderers/__init__.py +0 -0
  485. {django_restit-4.2.72 → django_restit-4.2.73}/wiki/renderers/mistune/__init__.py +0 -0
  486. {django_restit-4.2.72 → django_restit-4.2.73}/wiki/renderers/mistune/highlight.py +0 -0
  487. {django_restit-4.2.72 → django_restit-4.2.73}/wiki/renderers/mistune/math.py +0 -0
  488. {django_restit-4.2.72 → django_restit-4.2.73}/wiki/renderers/mistune/media.py +0 -0
  489. {django_restit-4.2.72 → django_restit-4.2.73}/wiki/renderers/mistune/meta.py +0 -0
  490. {django_restit-4.2.72 → django_restit-4.2.73}/wiki/renderers/mistune/task_list.py +0 -0
  491. {django_restit-4.2.72 → django_restit-4.2.73}/wiki/renderers/mistune/toc.py +0 -0
  492. {django_restit-4.2.72 → django_restit-4.2.73}/wiki/rpc/__init__.py +0 -0
  493. {django_restit-4.2.72 → django_restit-4.2.73}/wiki/rpc/wiki.py +0 -0
  494. {django_restit-4.2.72 → django_restit-4.2.73}/wiki/tq.py +0 -0
  495. {django_restit-4.2.72 → django_restit-4.2.73}/ws4redis/README.md +0 -0
  496. {django_restit-4.2.72 → django_restit-4.2.73}/ws4redis/__init__.py +0 -0
  497. {django_restit-4.2.72 → django_restit-4.2.73}/ws4redis/client.py +0 -0
  498. {django_restit-4.2.72 → django_restit-4.2.73}/ws4redis/connection.py +0 -0
  499. {django_restit-4.2.72 → django_restit-4.2.73}/ws4redis/exceptions.py +0 -0
  500. {django_restit-4.2.72 → django_restit-4.2.73}/ws4redis/redis.py +0 -0
  501. {django_restit-4.2.72 → django_restit-4.2.73}/ws4redis/servers/__init__.py +0 -0
  502. {django_restit-4.2.72 → django_restit-4.2.73}/ws4redis/servers/base.py +0 -0
  503. {django_restit-4.2.72 → django_restit-4.2.73}/ws4redis/servers/django.py +0 -0
  504. {django_restit-4.2.72 → django_restit-4.2.73}/ws4redis/servers/uwsgi.py +0 -0
  505. {django_restit-4.2.72 → django_restit-4.2.73}/ws4redis/settings.py +0 -0
  506. {django_restit-4.2.72 → django_restit-4.2.73}/ws4redis/utf8validator.py +0 -0
  507. {django_restit-4.2.72 → django_restit-4.2.73}/ws4redis/websocket.py +0 -0
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.1
2
2
  Name: django-restit
3
- Version: 4.2.72
3
+ Version: 4.2.73
4
4
  Summary: A Rest Framework for DJANGO
5
5
  License: MIT
6
6
  Author: Ian Starnes
@@ -113,9 +113,20 @@ class MemberDeviceMetaData(rm.MetaDataBase):
113
113
 
114
114
  class CloudCredentials(models.Model, rm.RestModel, rm.MetaDataModel):
115
115
  """
116
- MemberDevice Model tracks personal devices associated with a user.
117
- This can include mobile and desktop devices.
116
+ CloudCredentials is a global setting for a group to store this groups cloud credentials.
118
117
  """
118
+ class RestMeta:
119
+ VIEW_PERMS = ["view_cm", "manage_cm"]
120
+ EDIT_PERMS = ["manage_cm"]
121
+ GRAPHS = {
122
+ "default": {
123
+ "extra": ["metadata"],
124
+ "graphs": {
125
+ "group": "basic"
126
+ }
127
+ }
128
+ }
129
+
119
130
  created = models.DateTimeField(auto_now_add=True)
120
131
  modified = models.DateTimeField(auto_now=True)
121
132
  group = models.ForeignKey("account.Group", related_name="cloud_credentials", on_delete=models.CASCADE)
@@ -88,7 +88,8 @@ class Member(User, RestModel, MetaDataModel):
88
88
  ("perms", "properties|permissions.")]
89
89
  QUERY_FIELDS_SPECIAL = {
90
90
  "ip": "auth_sessions__ip",
91
- "login_country": "auth_sessions__location__country"
91
+ "login_country": "auth_sessions__location__country",
92
+ "not_login_country": "auth_sessions__location__country__ne"
92
93
  }
93
94
  UNIQUE_LOOKUP = ["username", "email"]
94
95
  METADATA_FIELD_PROPERTIES = settings.USER_METADATA_PROPERTIES
@@ -221,6 +222,10 @@ class Member(User, RestModel, MetaDataModel):
221
222
  return token.secure_token
222
223
  return None
223
224
 
225
+ @property
226
+ def force_single_session(self):
227
+ return self.getProperty("force_single_session", category="permissions", default=None)
228
+
224
229
  @property
225
230
  def has_totp(self):
226
231
  token = self.getProperty("totp_token", category="secrets", default=None)
@@ -847,6 +852,8 @@ class Member(User, RestModel, MetaDataModel):
847
852
  if token is None:
848
853
  token = AuthToken(member=self, role="default")
849
854
  token.generateToken()
855
+ elif action == "refresh_keys":
856
+ self.refreshSecurityToken()
850
857
 
851
858
  def set_full_name(self, value):
852
859
  self.set_name(value)
@@ -82,13 +82,14 @@ class Membership(models.Model, RestModel, MetaDataModel):
82
82
  if value == "resend_invite":
83
83
  self.sendInvite(self.getActiveRequest())
84
84
 
85
- def sendInvite(self, request=None, url=None, subject=None, site_logo=None, company_name=None):
85
+ def sendInvite(self, request=None, url=None, subject=None, site_logo=None, company_name=None, msg=None):
86
86
  if request:
87
87
  powered_by = request.DATA.get("powered_by", True)
88
88
  subject = request.DATA.get("invite_subject")
89
89
  url = request.DATA.get("invite_url")
90
90
  site_logo = request.DATA.get("site_logo", settings.SITE_LOGO)
91
91
  company_name = request.DATA.get("company_name", settings.COMPANY_NAME)
92
+ msg = request.DATA.get("invite_msg", None)
92
93
  else:
93
94
  powered_by = True
94
95
  site_logo = settings.SITE_LOGO
@@ -109,7 +110,7 @@ class Membership(models.Model, RestModel, MetaDataModel):
109
110
  url = "{}&auth_code={}".format(url, auth_token.toBase64())
110
111
  self.member.sendInvite(
111
112
  subject, self.group, url=url,
112
- msg=request.DATA.get("invite_msg", None),
113
+ msg=msg,
113
114
  POWERED_BY=powered_by,
114
115
  SITE_LOGO=site_logo,
115
116
  COMPANY_NAME=company_name,
@@ -8,7 +8,7 @@ from rest import ua
8
8
  # replacing legacy cookie session system with more robust session info
9
9
  class AuthSession(models.Model, RestModel):
10
10
  class RestMeta:
11
- SEARCH_FIELDS = ["ip", "member__username", "browser", "location__city"]
11
+ SEARCH_FIELDS = ["ip", "member__username", "browser", "location__city", "buid"]
12
12
  VIEW_PERMS = ["view_members", "manage_members", "manage_users", "owner"]
13
13
  CAN_SAVE = False
14
14
  CAN_DELETE = False
@@ -12,6 +12,7 @@ from django.http import HttpResponse
12
12
  from datetime import datetime, timedelta
13
13
 
14
14
  ALLOW_BASIC_LOGIN = settings.get("ALLOW_BASIC_LOGIN", False)
15
+ FORGET_ALWAYS_TRUE = settings.get("FORGET_ALWAYS_TRUE", True)
15
16
 
16
17
 
17
18
  @rd.urlPOST(r'^login$')
@@ -301,14 +302,20 @@ def member_forgot_password(request):
301
302
  """
302
303
  member, resp = get_member_from_request(request)
303
304
  if member is None:
305
+ if FORGET_ALWAYS_TRUE:
306
+ return rv.restStatus(request, True, msg="Password reset instructions have been sent to your email. (If valid account)")
304
307
  return resp
305
308
  if resp is not None and not member.is_active:
309
+ if FORGET_ALWAYS_TRUE:
310
+ return rv.restStatus(request, True, msg="Password reset instructions have been sent to your email. (If valid account)")
306
311
  return resp
307
312
 
308
313
  if request.DATA.get("use_code", False):
309
314
  return member_forgot_password_code(request, member)
310
315
 
311
316
  if member.auth_code is not None and member.auth_code_expires > datetime.now():
317
+ if FORGET_ALWAYS_TRUE:
318
+ return rv.restStatus(request, True, msg="Password reset instructions have been sent to your email. (If valid account)")
312
319
  return rv.restPermissionDenied(request, "already sent valid auth code")
313
320
 
314
321
  member.auth_code = crypto.randomString(16)
@@ -325,7 +332,7 @@ def member_forgot_password(request):
325
332
  'to': [member.email],
326
333
  })
327
334
 
328
- return rv.restStatus(request, True, msg="Password reset instructions have been sent to your email.")
335
+ return rv.restStatus(request, True, msg="Password reset instructions have been sent to your email. (If valid account)")
329
336
 
330
337
 
331
338
  def member_forgot_password_code(request, member):
@@ -5,6 +5,13 @@ from account import models as am
5
5
  from objict import objict
6
6
 
7
7
 
8
+ @rd.url(r'^group/cloud/credentials$')
9
+ @rd.url(r'^group/cloud/credentials/(?P<pk>\d+)$')
10
+ @rd.login_required
11
+ def rest_on_group_cloud_creds(request, pk=None):
12
+ return am.CloudCredentials.on_rest_request(request, pk)
13
+
14
+
8
15
  @rd.url(r'^member/device$')
9
16
  @rd.url(r'^member/device/(?P<pk>\d+)$')
10
17
  @rd.login_required
@@ -26,6 +26,7 @@ added to to same incident.
26
26
  class Rule(models.Model, rm.RestModel):
27
27
  class RestMeta:
28
28
  SEARCH_FIELDS = ["name", "group__name"]
29
+ POST_SAVE_FIELDS = ["checks"]
29
30
  CAN_DELETE = True
30
31
  VIEW_PERMS = ["view_incidents"]
31
32
  # VIEW_PERMS = ["example_permission"]
@@ -50,6 +51,11 @@ class Rule(models.Model, rm.RestModel):
50
51
  "bundle_by",
51
52
  "match_by"
52
53
  ]
54
+ },
55
+ "download": {
56
+ "graphs": {
57
+ "checks": "basic"
58
+ }
53
59
  }
54
60
  }
55
61
 
@@ -102,6 +108,17 @@ class Rule(models.Model, rm.RestModel):
102
108
  return True
103
109
  return False
104
110
 
111
+ def set_checks(self, value):
112
+ if not isinstance(value, list):
113
+ return
114
+ exclude = ["id", "pk", "created", "modified", "parent"]
115
+ for item in value:
116
+ nval = {key: item[key] for key in item if key not in exclude and RuleCheck.hasField(key)}
117
+ nval["parent"] = self.id
118
+ rh.debug(nval)
119
+ obj = RuleCheck.createFromDict(self.getActiveRequest(), nval)
120
+ rh.debug("created", obj)
121
+
105
122
 
106
123
  class RuleCheck(models.Model, rm.RestModel):
107
124
  class RestMeta:
@@ -16,7 +16,7 @@ def checkDomains(task):
16
16
  alarm_date = now + timedelta(days=30)
17
17
  result = ssl_check.check(*settings.DOMAIN_WATCH)
18
18
  for key, value in result.items():
19
- if value is None:
19
+ if value is None or isinstance(value, str):
20
20
  continue
21
21
  if value < alarm_date:
22
22
  task.log(f"{key} is expiring soon")
@@ -1,6 +1,6 @@
1
1
  [tool.poetry]
2
2
  name = "django-restit"
3
- version = "4.2.72"
3
+ version = "4.2.73"
4
4
  description = "A Rest Framework for DJANGO"
5
5
  authors = ["Ian Starnes <ians@311labs.com>"]
6
6
  license = "MIT"
@@ -394,6 +394,8 @@ class RestModel(object):
394
394
  return
395
395
  if not hasattr(self, "_field_names__"):
396
396
  self._field_names__ = [f.name for f in self._meta.get_fields()]
397
+ # if not hasattr(self, "_related_field_names__"):
398
+ # self._related_field_names__ = self.get_related_name_fields()
397
399
  # print "saving field: {0} = {1}".format(fieldname, value)
398
400
  if fieldname in RestModel.__RestMeta__.NO_SAVE_FIELDS:
399
401
  return
@@ -479,8 +481,6 @@ class RestModel(object):
479
481
  if hasattr(self, fieldname) and getattr(self, fieldname) != value:
480
482
  self._changed__[fieldname] = getattr(self, fieldname)
481
483
  setattr(self, fieldname, value)
482
- # else:
483
- # print "does not have field: {0}".format(fieldname)
484
484
 
485
485
  def saveFromRequest(self, request, **kwargs):
486
486
  if "files" not in kwargs:
@@ -1064,6 +1064,10 @@ class RestModel(object):
1064
1064
  if hasattr(cls.RestMeta, "FORMATS"):
1065
1065
  fields = cls.RestMeta.FORMATS.get(format, fields)
1066
1066
  if len(fields) == 0:
1067
+ if format == "json":
1068
+ g = cls.getGraph("default")
1069
+ if "fields" in g:
1070
+ return g["fields"]
1067
1071
  no_show_fields = RestModel.__RestMeta__.NO_SHOW_FIELDS
1068
1072
  if hasattr(cls.RestMeta, "NO_SHOW_FIELDS"):
1069
1073
  no_show_fields = cls.RestMeta.NO_SHOW_FIELDS
@@ -1077,12 +1081,17 @@ class RestModel(object):
1077
1081
  def on_rest_list_format(cls, request, format, qset):
1078
1082
  if format in ["summary", "summary_only"]:
1079
1083
  return cls.on_rest_list_summary(request, qset)
1080
- fields = cls.getRestFormatFields(format)
1084
+ fields = None
1085
+ if format == "json":
1086
+ g = cls.getGraph(request.DATA.get("graph", "download"))
1087
+ if g and "fields" in g:
1088
+ fields = g["fields"]
1089
+ if fields is None:
1090
+ fields = cls.getRestFormatFields(format)
1081
1091
  if fields or format == "json":
1082
1092
  name = request.DATA.get("format_filename", None)
1083
1093
  format_size = request.DATA.get("format_size", 10000)
1084
1094
  localize = request.DATA.get("localize", None, field_type=dict)
1085
- rh.debug("localize", localize)
1086
1095
  if name is None:
1087
1096
  ext = format
1088
1097
  if "_" in ext:
@@ -1157,6 +1166,14 @@ class RestModel(object):
1157
1166
  output[lbl] = rh.getMax(act_qset, field)
1158
1167
  return GRAPH_HELPERS.restGet(request, output)
1159
1168
 
1169
+ @classmethod
1170
+ def getRestBatchCreateFilter(cls, item, exclude=["id", "pk", "created", "modified"], include=None):
1171
+ if isinstance(include, list):
1172
+ return {key: item[key] for key in include if key in item}
1173
+ # ignore related fields
1174
+ rfs = cls.get_related_name_fields()
1175
+ return {key: item[key] for key in item if key not in exclude and cls.hasField(key) and key not in rfs}
1176
+
1160
1177
  @classmethod
1161
1178
  def on_rest_batch(cls, request, action):
1162
1179
  # this method is called when rest_batch='somme action'
@@ -1185,19 +1202,38 @@ class RestModel(object):
1185
1202
  count = qset.update(**update_fields)
1186
1203
  return GRAPH_HELPERS.restStatus(request, True, error="updated {} items".format(count))
1187
1204
  elif action == "create":
1188
- batch_data = request.DATA.getlist("batch_data", [])
1189
- items = []
1190
- for item in batch_data:
1191
- try:
1192
- obj = cls.ro_objects().filter(**item).last()
1193
- if not obj:
1194
- obj.checkPermsAndSave(request, item)
1195
- items.append(obj)
1196
- except Exception:
1197
- pass
1198
- return GRAPH_HELPERS.restList(request, items)
1205
+ cls.on_rest_batch_create(request)
1199
1206
  return GRAPH_HELPERS.restStatus(request, False, error="not implemented")
1200
1207
 
1208
+ @classmethod
1209
+ def on_rest_batch_create(cls, request):
1210
+ batch_data = request.DATA.get("batch_data")
1211
+ if isinstance(batch_data, str):
1212
+ batch_data = objict.fromJSON(batch_data)
1213
+ if isinstance(batch_data, dict):
1214
+ if "data" in batch_data:
1215
+ batch_data = batch_data["data"]
1216
+ items = []
1217
+ for item in batch_data:
1218
+ obj = cls.createFromBatch(item)
1219
+ if obj:
1220
+ items.append(obj)
1221
+ return GRAPH_HELPERS.restList(request, items)
1222
+
1223
+ @classmethod
1224
+ def createFromBatch(cls, item, request=None):
1225
+ obj = None
1226
+ try:
1227
+ rh.debug("batch item", item)
1228
+ item_filter = cls.getRestBatchCreateFilter(item)
1229
+ rh.debug("batch filters", item_filter)
1230
+ obj = cls.ro_objects().filter(**item_filter).last()
1231
+ if obj is None:
1232
+ obj = cls.createFromDict(request, item)
1233
+ except Exception:
1234
+ rh.log_exception(item)
1235
+ return obj
1236
+
1201
1237
  @classmethod
1202
1238
  def on_rest_create(cls, request, pk=None):
1203
1239
  # permissions are checked in the save routine
@@ -1526,6 +1562,7 @@ class RestModel(object):
1526
1562
  <field_name>=<operator>:value
1527
1563
  """
1528
1564
  q = {}
1565
+ exq = {}
1529
1566
  field_names = cls.rest_getQueryFields()
1530
1567
  query_keys = request.DATA.keys()
1531
1568
  special_keys = getattr(cls.RestMeta, "QUERY_FIELDS_SPECIAL", {})
@@ -1597,6 +1634,8 @@ class RestModel(object):
1597
1634
  if oper == "in":
1598
1635
  if isinstance(value, str) and ',' in value:
1599
1636
  value = [a.strip() for a in value.split(',')]
1637
+ elif oper == "isnull":
1638
+ value = value in [True, "true", 1, "1"]
1600
1639
  elif oper is None and value in ["null", "None"]:
1601
1640
  key = "{}__isnull".format(key)
1602
1641
  value = True
@@ -1607,8 +1646,12 @@ class RestModel(object):
1607
1646
  value = rh.toInteger(value)
1608
1647
  q[key] = value
1609
1648
  if bool(q):
1610
- # rh.debug("queryFromRequest", q, "default_filters:", request.default_rest_filters)
1611
- qset = qset.filter(**q)
1649
+ exq = {key[:-4]: q[key] for key in q if key.endswith("__ne")}
1650
+ q = {key: q[key] for key in q if not key.endswith("__ne")}
1651
+ if bool(exq):
1652
+ qset = qset.exclude(**exq)
1653
+ if bool(q):
1654
+ qset = qset.filter(**q)
1612
1655
  return qset
1613
1656
 
1614
1657
  @classmethod
@@ -1671,6 +1714,10 @@ class RestModel(object):
1671
1714
  '''returns the internal field type'''
1672
1715
  return [field.name for field in cls._meta.fields if field.get_internal_type() == "ForeignKey"]
1673
1716
 
1717
+ @classmethod
1718
+ def get_related_name_fields(cls):
1719
+ return [f.related_name for f in cls._meta.related_objects]
1720
+
1674
1721
  @classmethod
1675
1722
  def get_fk_model(cls, fieldname):
1676
1723
  '''returns None if not foreignkey, otherswise the relevant model'''
File without changes