simpledomcontrol 0.57.16__tar.gz → 0.57.18__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 (169) hide show
  1. {simpledomcontrol-0.57.16 → simpledomcontrol-0.57.18}/PKG-INFO +3 -2
  2. {simpledomcontrol-0.57.16 → simpledomcontrol-0.57.18}/pyproject.toml +3 -2
  3. {simpledomcontrol-0.57.16 → simpledomcontrol-0.57.18}/sdc_core/management/commands/init_add/add_controller_manager.py +20 -23
  4. {simpledomcontrol-0.57.16 → simpledomcontrol-0.57.18}/sdc_core/management/commands/sdc_cc.py +0 -2
  5. {simpledomcontrol-0.57.16 → simpledomcontrol-0.57.18}/sdc_core/management/commands/sdc_get_controller_infos.py +1 -1
  6. {simpledomcontrol-0.57.16 → simpledomcontrol-0.57.18}/sdc_core/management/commands/sdc_get_controller_url.py +3 -1
  7. {simpledomcontrol-0.57.16 → simpledomcontrol-0.57.18}/sdc_core/template_files/.devcontainer/Dockerfile +18 -7
  8. {simpledomcontrol-0.57.16 → simpledomcontrol-0.57.18}/sdc_core/template_files/.devcontainer/devcontainer.json +3 -3
  9. {simpledomcontrol-0.57.16 → simpledomcontrol-0.57.18}/sdc_core/template_files/.devcontainer/on_create.sh +6 -1
  10. simpledomcontrol-0.57.18/sdc_core/template_files/.devcontainer/on_startup.sh +5 -0
  11. {simpledomcontrol-0.57.16 → simpledomcontrol-0.57.18}/sdc_core/template_files/controller/template_controller.js.txt +1 -1
  12. {simpledomcontrol-0.57.16 → simpledomcontrol-0.57.18}/sdc_core/template_files/package.json +1 -1
  13. simpledomcontrol-0.57.18/sdc_tools/Assets/src/sdc_tools/controller/sdc_navigation_client/sdc_navigation_client.js +70 -0
  14. simpledomcontrol-0.57.18/sdc_user/Assets/src/sdc_user/controller/register/register.js +59 -0
  15. simpledomcontrol-0.57.18/sdc_user/Assets/src/sdc_user/controller/register/register.scss +3 -0
  16. {simpledomcontrol-0.57.16 → simpledomcontrol-0.57.18}/sdc_user/Assets/src/sdc_user/sdc_user.organizer.js +1 -0
  17. {simpledomcontrol-0.57.16 → simpledomcontrol-0.57.18}/sdc_user/Assets/src/sdc_user/sdc_user.style.scss +1 -0
  18. {simpledomcontrol-0.57.16 → simpledomcontrol-0.57.18}/sdc_user/Assets/tests/sdc_user.test.js +18 -0
  19. {simpledomcontrol-0.57.16 → simpledomcontrol-0.57.18}/sdc_user/mails.py +4 -3
  20. simpledomcontrol-0.57.18/sdc_user/migrations/0002_delete_sdcuser.py +16 -0
  21. simpledomcontrol-0.57.18/sdc_user/migrations/0003_initial.py +46 -0
  22. {simpledomcontrol-0.57.16 → simpledomcontrol-0.57.18}/sdc_user/sdc_urls.py +1 -0
  23. {simpledomcontrol-0.57.16 → simpledomcontrol-0.57.18}/sdc_user/sdc_views.py +7 -0
  24. simpledomcontrol-0.57.18/sdc_user/templates/sdc_user/sdc/register.html +18 -0
  25. {simpledomcontrol-0.57.16 → simpledomcontrol-0.57.18}/sdc_user/templates/sdc_user/sdc/sdc_login.html +2 -0
  26. {simpledomcontrol-0.57.16 → simpledomcontrol-0.57.18}/sdc_user/templates/sdc_user/sdc/sdc_user_nav_btn.html +1 -1
  27. simpledomcontrol-0.57.16/sdc_core/template_files/.devcontainer/on_startup.sh +0 -5
  28. simpledomcontrol-0.57.16/sdc_tools/Assets/src/sdc_tools/controller/sdc_navigation_client/sdc_navigation_client.js +0 -65
  29. {simpledomcontrol-0.57.16 → simpledomcontrol-0.57.18}/README.md +0 -0
  30. {simpledomcontrol-0.57.16 → simpledomcontrol-0.57.18}/sdc_core/__init__.py +0 -0
  31. {simpledomcontrol-0.57.16 → simpledomcontrol-0.57.18}/sdc_core/apps.py +0 -0
  32. {simpledomcontrol-0.57.16 → simpledomcontrol-0.57.18}/sdc_core/consumers.py +0 -0
  33. {simpledomcontrol-0.57.16 → simpledomcontrol-0.57.18}/sdc_core/management/__init__.py +0 -0
  34. {simpledomcontrol-0.57.16 → simpledomcontrol-0.57.18}/sdc_core/management/commands/__init__.py +0 -0
  35. {simpledomcontrol-0.57.16 → simpledomcontrol-0.57.18}/sdc_core/management/commands/_private.py +0 -0
  36. {simpledomcontrol-0.57.16 → simpledomcontrol-0.57.18}/sdc_core/management/commands/init_add/__init__.py +0 -0
  37. {simpledomcontrol-0.57.16 → simpledomcontrol-0.57.18}/sdc_core/management/commands/init_add/add_model_manager.py +0 -0
  38. {simpledomcontrol-0.57.16 → simpledomcontrol-0.57.18}/sdc_core/management/commands/init_add/options.py +0 -0
  39. {simpledomcontrol-0.57.16 → simpledomcontrol-0.57.18}/sdc_core/management/commands/init_add/sdc_core_manager.py +0 -0
  40. {simpledomcontrol-0.57.16 → simpledomcontrol-0.57.18}/sdc_core/management/commands/init_add/settings_manager.py +0 -0
  41. {simpledomcontrol-0.57.16 → simpledomcontrol-0.57.18}/sdc_core/management/commands/init_add/utils.py +0 -0
  42. {simpledomcontrol-0.57.16 → simpledomcontrol-0.57.18}/sdc_core/management/commands/sdc_get_model_infos.py +0 -0
  43. {simpledomcontrol-0.57.16 → simpledomcontrol-0.57.18}/sdc_core/management/commands/sdc_init.py +0 -0
  44. {simpledomcontrol-0.57.16 → simpledomcontrol-0.57.18}/sdc_core/management/commands/sdc_is_installed.py +0 -0
  45. {simpledomcontrol-0.57.16 → simpledomcontrol-0.57.18}/sdc_core/management/commands/sdc_new_model.py +0 -0
  46. {simpledomcontrol-0.57.16 → simpledomcontrol-0.57.18}/sdc_core/management/commands/sdc_shell_execute_script.py +0 -0
  47. {simpledomcontrol-0.57.16 → simpledomcontrol-0.57.18}/sdc_core/management/commands/sdc_update_links.py +0 -0
  48. {simpledomcontrol-0.57.16 → simpledomcontrol-0.57.18}/sdc_core/management/commands/sdc_update_url.py +0 -0
  49. {simpledomcontrol-0.57.16 → simpledomcontrol-0.57.18}/sdc_core/management/commands/utils/__init__.py +0 -0
  50. {simpledomcontrol-0.57.16 → simpledomcontrol-0.57.18}/sdc_core/sdc_extentions/__init__.py +0 -0
  51. {simpledomcontrol-0.57.16 → simpledomcontrol-0.57.18}/sdc_core/sdc_extentions/forms.py +0 -0
  52. {simpledomcontrol-0.57.16 → simpledomcontrol-0.57.18}/sdc_core/sdc_extentions/import_manager.py +0 -0
  53. {simpledomcontrol-0.57.16 → simpledomcontrol-0.57.18}/sdc_core/sdc_extentions/models.py +0 -0
  54. {simpledomcontrol-0.57.16 → simpledomcontrol-0.57.18}/sdc_core/sdc_extentions/response.py +0 -0
  55. {simpledomcontrol-0.57.16 → simpledomcontrol-0.57.18}/sdc_core/sdc_extentions/search.py +0 -0
  56. {simpledomcontrol-0.57.16 → simpledomcontrol-0.57.18}/sdc_core/sdc_extentions/views.py +0 -0
  57. {simpledomcontrol-0.57.16 → simpledomcontrol-0.57.18}/sdc_core/signals.py +0 -0
  58. {simpledomcontrol-0.57.16 → simpledomcontrol-0.57.18}/sdc_core/template_files/Assets/.babelrc +0 -0
  59. {simpledomcontrol-0.57.16 → simpledomcontrol-0.57.18}/sdc_core/template_files/Assets/gulpfile.jsx +0 -0
  60. {simpledomcontrol-0.57.16 → simpledomcontrol-0.57.18}/sdc_core/template_files/Assets/src/index.organizer.js +0 -0
  61. {simpledomcontrol-0.57.16 → simpledomcontrol-0.57.18}/sdc_core/template_files/Assets/src/index.style.scss +0 -0
  62. {simpledomcontrol-0.57.16 → simpledomcontrol-0.57.18}/sdc_core/template_files/Assets/static/img/favicon.png +0 -0
  63. {simpledomcontrol-0.57.16 → simpledomcontrol-0.57.18}/sdc_core/template_files/Assets/tests/config/post-test-teardown.js +0 -0
  64. {simpledomcontrol-0.57.16 → simpledomcontrol-0.57.18}/sdc_core/template_files/Assets/tests/config/pre-test-setup.js +0 -0
  65. {simpledomcontrol-0.57.16 → simpledomcontrol-0.57.18}/sdc_core/template_files/Assets/tests/config/test-setup.js +0 -0
  66. {simpledomcontrol-0.57.16 → simpledomcontrol-0.57.18}/sdc_core/template_files/Assets/webpack.config/webpack.default.config.jsx +0 -0
  67. {simpledomcontrol-0.57.16 → simpledomcontrol-0.57.18}/sdc_core/template_files/Assets/webpack.config/webpack.development.config.jsx +0 -0
  68. {simpledomcontrol-0.57.16 → simpledomcontrol-0.57.18}/sdc_core/template_files/Assets/webpack.config/webpack.production.config.jsx +0 -0
  69. {simpledomcontrol-0.57.16 → simpledomcontrol-0.57.18}/sdc_core/template_files/asgi.py.txt +0 -0
  70. {simpledomcontrol-0.57.16 → simpledomcontrol-0.57.18}/sdc_core/template_files/controller/templade_view.html +0 -0
  71. {simpledomcontrol-0.57.16 → simpledomcontrol-0.57.18}/sdc_core/template_files/controller/template_css.scss +0 -0
  72. {simpledomcontrol-0.57.16 → simpledomcontrol-0.57.18}/sdc_core/template_files/controller/template_test.js.text +0 -0
  73. {simpledomcontrol-0.57.16 → simpledomcontrol-0.57.18}/sdc_core/template_files/js_test.js.txt +0 -0
  74. {simpledomcontrol-0.57.16 → simpledomcontrol-0.57.18}/sdc_core/template_files/models/detail.html +0 -0
  75. {simpledomcontrol-0.57.16 → simpledomcontrol-0.57.18}/sdc_core/template_files/models/list.html +0 -0
  76. {simpledomcontrol-0.57.16 → simpledomcontrol-0.57.18}/sdc_core/template_files/routing.py.txt +0 -0
  77. {simpledomcontrol-0.57.16 → simpledomcontrol-0.57.18}/sdc_core/template_files/sdc_urls.py.txt +0 -0
  78. {simpledomcontrol-0.57.16 → simpledomcontrol-0.57.18}/sdc_core/template_files/sdc_views.py.txt +0 -0
  79. {simpledomcontrol-0.57.16 → simpledomcontrol-0.57.18}/sdc_core/template_files/settings_extension.py.txt +0 -0
  80. {simpledomcontrol-0.57.16 → simpledomcontrol-0.57.18}/sdc_core/template_files/templates/base.html +0 -0
  81. {simpledomcontrol-0.57.16 → simpledomcontrol-0.57.18}/sdc_core/template_files/templates/elements/form.html +0 -0
  82. {simpledomcontrol-0.57.16 → simpledomcontrol-0.57.18}/sdc_core/template_files/templates/elements/inline_form.html +0 -0
  83. {simpledomcontrol-0.57.16 → simpledomcontrol-0.57.18}/sdc_core/template_files/templates/index.html +0 -0
  84. {simpledomcontrol-0.57.16 → simpledomcontrol-0.57.18}/sdc_core/template_files/urls.py.txt +0 -0
  85. {simpledomcontrol-0.57.16 → simpledomcontrol-0.57.18}/sdc_core/templatetags/__init__.py +0 -0
  86. {simpledomcontrol-0.57.16 → simpledomcontrol-0.57.18}/sdc_core/templatetags/addclass.py +0 -0
  87. {simpledomcontrol-0.57.16 → simpledomcontrol-0.57.18}/sdc_core/templatetags/indexfilter.py +0 -0
  88. {simpledomcontrol-0.57.16 → simpledomcontrol-0.57.18}/sdc_core/templatetags/sdc_filter.py +0 -0
  89. {simpledomcontrol-0.57.16 → simpledomcontrol-0.57.18}/sdc_tools/Assets/src/sdc_tools/controller/sdc_alert_messenger/sdc_alert_messenger.js +0 -0
  90. {simpledomcontrol-0.57.16 → simpledomcontrol-0.57.18}/sdc_tools/Assets/src/sdc_tools/controller/sdc_alert_messenger/sdc_alert_messenger.scss +0 -0
  91. {simpledomcontrol-0.57.16 → simpledomcontrol-0.57.18}/sdc_tools/Assets/src/sdc_tools/controller/sdc_auto_submit/sdc_auto_submit.js +0 -0
  92. {simpledomcontrol-0.57.16 → simpledomcontrol-0.57.18}/sdc_tools/Assets/src/sdc_tools/controller/sdc_detail_view/sdc_detail_view.js +0 -0
  93. {simpledomcontrol-0.57.16 → simpledomcontrol-0.57.18}/sdc_tools/Assets/src/sdc_tools/controller/sdc_detail_view/sdc_detail_view.scss +0 -0
  94. {simpledomcontrol-0.57.16 → simpledomcontrol-0.57.18}/sdc_tools/Assets/src/sdc_tools/controller/sdc_dummy/sdc_dummy.js +0 -0
  95. {simpledomcontrol-0.57.16 → simpledomcontrol-0.57.18}/sdc_tools/Assets/src/sdc_tools/controller/sdc_dummy/sdc_dummy.scss +0 -0
  96. {simpledomcontrol-0.57.16 → simpledomcontrol-0.57.18}/sdc_tools/Assets/src/sdc_tools/controller/sdc_error/sdc_error.js +0 -0
  97. {simpledomcontrol-0.57.16 → simpledomcontrol-0.57.18}/sdc_tools/Assets/src/sdc_tools/controller/sdc_error/sdc_error.scss +0 -0
  98. {simpledomcontrol-0.57.16 → simpledomcontrol-0.57.18}/sdc_tools/Assets/src/sdc_tools/controller/sdc_list_view/sdc_list_view.js +0 -0
  99. {simpledomcontrol-0.57.16 → simpledomcontrol-0.57.18}/sdc_tools/Assets/src/sdc_tools/controller/sdc_list_view/sdc_list_view.scss +0 -0
  100. {simpledomcontrol-0.57.16 → simpledomcontrol-0.57.18}/sdc_tools/Assets/src/sdc_tools/controller/sdc_model_form/sdc_model_form.js +0 -0
  101. {simpledomcontrol-0.57.16 → simpledomcontrol-0.57.18}/sdc_tools/Assets/src/sdc_tools/controller/sdc_model_form/sdc_model_form.scss +0 -0
  102. {simpledomcontrol-0.57.16 → simpledomcontrol-0.57.18}/sdc_tools/Assets/src/sdc_tools/controller/sdc_navigator/sdc_navigator.js +0 -0
  103. {simpledomcontrol-0.57.16 → simpledomcontrol-0.57.18}/sdc_tools/Assets/src/sdc_tools/controller/sdc_navigator/sdc_navigator.scss +0 -0
  104. {simpledomcontrol-0.57.16 → simpledomcontrol-0.57.18}/sdc_tools/Assets/src/sdc_tools/controller/sdc_search_select/sdc_search_select.js +0 -0
  105. {simpledomcontrol-0.57.16 → simpledomcontrol-0.57.18}/sdc_tools/Assets/src/sdc_tools/controller/sdc_search_select/sdc_search_select.scss +0 -0
  106. {simpledomcontrol-0.57.16 → simpledomcontrol-0.57.18}/sdc_tools/Assets/src/sdc_tools/controller/sdc_search_view/sdc_search_view.js +0 -0
  107. {simpledomcontrol-0.57.16 → simpledomcontrol-0.57.18}/sdc_tools/Assets/src/sdc_tools/controller/sdc_search_view/sdc_search_view.scss +0 -0
  108. {simpledomcontrol-0.57.16 → simpledomcontrol-0.57.18}/sdc_tools/Assets/src/sdc_tools/controller/sdc_update_on_change/sdc_update_on_change.js +0 -0
  109. {simpledomcontrol-0.57.16 → simpledomcontrol-0.57.18}/sdc_tools/Assets/src/sdc_tools/sdc_tools.organizer.js +0 -0
  110. {simpledomcontrol-0.57.16 → simpledomcontrol-0.57.18}/sdc_tools/Assets/src/sdc_tools/sdc_tools.style.scss +0 -0
  111. {simpledomcontrol-0.57.16 → simpledomcontrol-0.57.18}/sdc_tools/Assets/tests/sdc_tools.test.js +0 -0
  112. {simpledomcontrol-0.57.16 → simpledomcontrol-0.57.18}/sdc_tools/__init__.py +0 -0
  113. {simpledomcontrol-0.57.16 → simpledomcontrol-0.57.18}/sdc_tools/admin.py +0 -0
  114. {simpledomcontrol-0.57.16 → simpledomcontrol-0.57.18}/sdc_tools/apps.py +0 -0
  115. {simpledomcontrol-0.57.16 → simpledomcontrol-0.57.18}/sdc_tools/migrations/__init__.py +0 -0
  116. {simpledomcontrol-0.57.16 → simpledomcontrol-0.57.18}/sdc_tools/models.py +0 -0
  117. {simpledomcontrol-0.57.16 → simpledomcontrol-0.57.18}/sdc_tools/sdc_urls.py +0 -0
  118. {simpledomcontrol-0.57.16 → simpledomcontrol-0.57.18}/sdc_tools/sdc_views.py +0 -0
  119. {simpledomcontrol-0.57.16 → simpledomcontrol-0.57.18}/sdc_tools/templates/email/base.html +0 -0
  120. {simpledomcontrol-0.57.16 → simpledomcontrol-0.57.18}/sdc_tools/templates/sdc_tools/sdc/dummy_sdc.html +0 -0
  121. {simpledomcontrol-0.57.16 → simpledomcontrol-0.57.18}/sdc_tools/templates/sdc_tools/sdc/sdc_alert_messenger.html +0 -0
  122. {simpledomcontrol-0.57.16 → simpledomcontrol-0.57.18}/sdc_tools/templates/sdc_tools/sdc/sdc_detail_view.html +0 -0
  123. {simpledomcontrol-0.57.16 → simpledomcontrol-0.57.18}/sdc_tools/templates/sdc_tools/sdc/sdc_dummy.html +0 -0
  124. {simpledomcontrol-0.57.16 → simpledomcontrol-0.57.18}/sdc_tools/templates/sdc_tools/sdc/sdc_error.html +0 -0
  125. {simpledomcontrol-0.57.16 → simpledomcontrol-0.57.18}/sdc_tools/templates/sdc_tools/sdc/sdc_list_view.html +0 -0
  126. {simpledomcontrol-0.57.16 → simpledomcontrol-0.57.18}/sdc_tools/templates/sdc_tools/sdc/sdc_model_form.html +0 -0
  127. {simpledomcontrol-0.57.16 → simpledomcontrol-0.57.18}/sdc_tools/templates/sdc_tools/sdc/sdc_navigator.html +0 -0
  128. {simpledomcontrol-0.57.16 → simpledomcontrol-0.57.18}/sdc_tools/templates/sdc_tools/sdc/sdc_search_select.html +0 -0
  129. {simpledomcontrol-0.57.16 → simpledomcontrol-0.57.18}/sdc_tools/templates/sdc_tools/sdc/sdc_search_view.html +0 -0
  130. {simpledomcontrol-0.57.16 → simpledomcontrol-0.57.18}/sdc_tools/templates/widgets/searchable_select.html +0 -0
  131. {simpledomcontrol-0.57.16 → simpledomcontrol-0.57.18}/sdc_tools/tests.py +0 -0
  132. {simpledomcontrol-0.57.16 → simpledomcontrol-0.57.18}/sdc_tools/views.py +0 -0
  133. {simpledomcontrol-0.57.16 → simpledomcontrol-0.57.18}/sdc_tools/widgets.py +0 -0
  134. {simpledomcontrol-0.57.16 → simpledomcontrol-0.57.18}/sdc_user/Assets/src/sdc_user/controller/sdc_change_password/sdc_change_password.js +0 -0
  135. {simpledomcontrol-0.57.16 → simpledomcontrol-0.57.18}/sdc_user/Assets/src/sdc_user/controller/sdc_change_password/sdc_change_password.scss +0 -0
  136. {simpledomcontrol-0.57.16 → simpledomcontrol-0.57.18}/sdc_user/Assets/src/sdc_user/controller/sdc_confirm_email/sdc_confirm_email.js +0 -0
  137. {simpledomcontrol-0.57.16 → simpledomcontrol-0.57.18}/sdc_user/Assets/src/sdc_user/controller/sdc_confirm_email/sdc_confirm_email.scss +0 -0
  138. {simpledomcontrol-0.57.16 → simpledomcontrol-0.57.18}/sdc_user/Assets/src/sdc_user/controller/sdc_login/sdc_login.js +0 -0
  139. {simpledomcontrol-0.57.16 → simpledomcontrol-0.57.18}/sdc_user/Assets/src/sdc_user/controller/sdc_login/sdc_login.scss +0 -0
  140. {simpledomcontrol-0.57.16 → simpledomcontrol-0.57.18}/sdc_user/Assets/src/sdc_user/controller/sdc_logout/sdc_logout.js +0 -0
  141. {simpledomcontrol-0.57.16 → simpledomcontrol-0.57.18}/sdc_user/Assets/src/sdc_user/controller/sdc_logout/sdc_logout.scss +0 -0
  142. {simpledomcontrol-0.57.16 → simpledomcontrol-0.57.18}/sdc_user/Assets/src/sdc_user/controller/sdc_password_forgotten/sdc_password_forgotten.js +0 -0
  143. {simpledomcontrol-0.57.16 → simpledomcontrol-0.57.18}/sdc_user/Assets/src/sdc_user/controller/sdc_password_forgotten/sdc_password_forgotten.scss +0 -0
  144. {simpledomcontrol-0.57.16 → simpledomcontrol-0.57.18}/sdc_user/Assets/src/sdc_user/controller/sdc_reset_password/sdc_reset_password.js +0 -0
  145. {simpledomcontrol-0.57.16 → simpledomcontrol-0.57.18}/sdc_user/Assets/src/sdc_user/controller/sdc_reset_password/sdc_reset_password.scss +0 -0
  146. {simpledomcontrol-0.57.16 → simpledomcontrol-0.57.18}/sdc_user/Assets/src/sdc_user/controller/sdc_user/sdc_user.js +0 -0
  147. {simpledomcontrol-0.57.16 → simpledomcontrol-0.57.18}/sdc_user/Assets/src/sdc_user/controller/sdc_user/sdc_user.scss +0 -0
  148. {simpledomcontrol-0.57.16 → simpledomcontrol-0.57.18}/sdc_user/Assets/src/sdc_user/controller/sdc_user_nav_btn/sdc_user_nav_btn.js +0 -0
  149. {simpledomcontrol-0.57.16 → simpledomcontrol-0.57.18}/sdc_user/Assets/src/sdc_user/controller/sdc_user_nav_btn/sdc_user_nav_btn.scss +0 -0
  150. {simpledomcontrol-0.57.16 → simpledomcontrol-0.57.18}/sdc_user/__init__.py +0 -0
  151. {simpledomcontrol-0.57.16 → simpledomcontrol-0.57.18}/sdc_user/admin.py +0 -0
  152. {simpledomcontrol-0.57.16 → simpledomcontrol-0.57.18}/sdc_user/apps.py +0 -0
  153. {simpledomcontrol-0.57.16 → simpledomcontrol-0.57.18}/sdc_user/forms.py +0 -0
  154. {simpledomcontrol-0.57.16 → simpledomcontrol-0.57.18}/sdc_user/migrations/0001_initial.py +0 -0
  155. {simpledomcontrol-0.57.16 → simpledomcontrol-0.57.18}/sdc_user/migrations/__init__.py +0 -0
  156. {simpledomcontrol-0.57.16 → simpledomcontrol-0.57.18}/sdc_user/models.py +0 -0
  157. {simpledomcontrol-0.57.16 → simpledomcontrol-0.57.18}/sdc_user/templates/email/confirm.html +0 -0
  158. {simpledomcontrol-0.57.16 → simpledomcontrol-0.57.18}/sdc_user/templates/email/reset_password.html +0 -0
  159. {simpledomcontrol-0.57.16 → simpledomcontrol-0.57.18}/sdc_user/templates/sdc_user/models/SdcUser/SdcUser_details.html +0 -0
  160. {simpledomcontrol-0.57.16 → simpledomcontrol-0.57.18}/sdc_user/templates/sdc_user/models/SdcUser/SdcUser_list.html +0 -0
  161. {simpledomcontrol-0.57.16 → simpledomcontrol-0.57.18}/sdc_user/templates/sdc_user/sdc/sdc_change_password.html +0 -0
  162. {simpledomcontrol-0.57.16 → simpledomcontrol-0.57.18}/sdc_user/templates/sdc_user/sdc/sdc_confirm_email.html +0 -0
  163. {simpledomcontrol-0.57.16 → simpledomcontrol-0.57.18}/sdc_user/templates/sdc_user/sdc/sdc_logout.html +0 -0
  164. {simpledomcontrol-0.57.16 → simpledomcontrol-0.57.18}/sdc_user/templates/sdc_user/sdc/sdc_password_forgotten.html +0 -0
  165. {simpledomcontrol-0.57.16 → simpledomcontrol-0.57.18}/sdc_user/templates/sdc_user/sdc/sdc_reset_password.html +0 -0
  166. {simpledomcontrol-0.57.16 → simpledomcontrol-0.57.18}/sdc_user/templates/widgets/read_only_password_hash.html +0 -0
  167. {simpledomcontrol-0.57.16 → simpledomcontrol-0.57.18}/sdc_user/tests.py +0 -0
  168. {simpledomcontrol-0.57.16 → simpledomcontrol-0.57.18}/sdc_user/views.py +0 -0
  169. {simpledomcontrol-0.57.16 → simpledomcontrol-0.57.18}/sdc_user/widgets.py +0 -0
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.3
2
2
  Name: SimpleDomControl
3
- Version: 0.57.16
3
+ Version: 0.57.18
4
4
  Summary: Simple DOM control -> a django MVC framework
5
5
  License: Apache-2.0
6
6
  Keywords: django,MVC
@@ -17,10 +17,11 @@ Classifier: Topic :: Software Development :: Libraries :: Python Modules
17
17
  Requires-Dist: attrs (>=25.4.0,<26.0.0)
18
18
  Requires-Dist: channels (>=4.3.1,<5.0.0)
19
19
  Requires-Dist: channels-redis (>=4.3.0,<5.0.0)
20
- Requires-Dist: click (>=8.3.1,<9.0.0)
20
+ Requires-Dist: click (>=8.1.0)
21
21
  Requires-Dist: daphne (>=4.2.1,<5.0.0)
22
22
  Requires-Dist: django (>=5.2.8,<6.0.0)
23
23
  Requires-Dist: inquirerpy (>=0.3.4,<0.4.0)
24
+ Requires-Dist: poetry-core (>=2.2.1,<3.0.0)
24
25
  Requires-Dist: psycopg2-binary (>=2.9.11,<3.0.0)
25
26
  Requires-Dist: pyjwt (>=2.10.1,<3.0.0)
26
27
  Requires-Dist: regex (>=2025.11.3,<2026.0.0)
@@ -1,6 +1,6 @@
1
1
  [tool.poetry]
2
2
  name = "SimpleDomControl"
3
- version = "0.57.16"
3
+ version = "0.57.18"
4
4
  authors = [ "Martin Starman <private@martin-starman.com>", ]
5
5
  description = "Simple DOM control -> a django MVC framework"
6
6
  readme = "README.md"
@@ -26,9 +26,10 @@ django = "^5.2.8"
26
26
  psycopg2-binary = "^2.9.11"
27
27
  attrs = "^25.4.0"
28
28
  regex = "^2025.11.3"
29
- click = "^8.3.1"
29
+ click = ">=8.1.0"
30
30
  pyjwt = "^2.10.1"
31
31
  inquirerpy = "^0.3.4"
32
+ poetry-core = "^2.2.1"
32
33
 
33
34
  [tool.pytest.ini_options]
34
35
  pythonpath = [
@@ -13,7 +13,7 @@ from sdc_core.management.commands.init_add.utils import convert_to_snake_case, c
13
13
 
14
14
 
15
15
  class AddControllerManager:
16
- def __init__(self, app_name: str, controller_name: str, mixins: Optional[list[str]]=None):
16
+ def __init__(self, app_name: str, controller_name: str, mixins: Optional[list[str]] = None):
17
17
  if mixins is None:
18
18
  self.mixins = []
19
19
  self.app_name = app_name
@@ -30,25 +30,23 @@ class AddControllerManager:
30
30
  '§APPNAME§': self.app_name
31
31
  }}
32
32
 
33
- @staticmethod
34
- def check_controller_name(c_name_sc):
35
- url_name = "scd_view_" + c_name_sc
36
-
37
- for i in get_resolver().reverse_dict.keys():
38
- if str(i).endswith(url_name):
39
- return True
40
-
41
- return False
33
+ @classmethod
34
+ def check_controller_name(cls, app_name, c_name_sc):
35
+ url_name = cls.get_url(app_name, c_name_sc)
36
+ return url_name != ''
42
37
 
43
38
  @staticmethod
44
- def get_url(c_name_sc):
45
- url_name = "scd_view_" + c_name_sc
46
-
39
+ def get_url(app_name, c_name_sc):
40
+ url_name_old = "scd_view_" + c_name_sc
41
+ url_name = f"scd_view_{app_name}_{c_name_sc}"
42
+ old_url_to_sdc = ''
47
43
  for i in get_resolver().reverse_dict.keys():
44
+ if str(i).endswith(url_name_old):
45
+ old_url_to_sdc = "/" + get_resolver().reverse_dict[i][0][0][0]
48
46
  if str(i).endswith(url_name):
49
47
  url_to_sdc = "/" + get_resolver().reverse_dict[i][0][0][0]
50
48
  return url_to_sdc
51
- return ''
49
+ return old_url_to_sdc
52
50
 
53
51
  @classmethod
54
52
  def add_js_app_to_organizer(cls, app_name):
@@ -65,12 +63,12 @@ class AddControllerManager:
65
63
  cls._add_scss_to_src(org_file_path_root, line)
66
64
 
67
65
  def check_if_url_is_unique(self):
68
- return not self.check_controller_name(self.controller_name_sc)
66
+ return not self.check_controller_name(self.app_name, self.controller_name_sc)
69
67
 
70
68
  def get_template_url(self):
71
69
  if self._template_url is not None:
72
70
  return self._template_url
73
- cmd = '%s manage.py sdc_get_controller_url %s' % (sys.executable, self.controller_name_sc)
71
+ cmd = f'{sys.executable} manage.py sdc_get_controller_url {self.app_name} {self.controller_name_sc}'
74
72
  p = subprocess.Popen(cmd, stdout=subprocess.PIPE, shell=True, cwd=options.PROJECT_ROOT)
75
73
  out = str(p.communicate()[0], encoding="utf-8")
76
74
  out = re.sub(r'\\r?\\n.*$', r'', out)
@@ -81,13 +79,13 @@ class AddControllerManager:
81
79
  def get_template_url_sync(self):
82
80
  if self._template_url is not None:
83
81
  return self._template_url
84
- out = self.get_url(self.controller_name_sc)
82
+ out = self.get_url(self.app_name, self.controller_name_sc)
85
83
  self._template_url = re.sub(r'^b\'([^\']*)\'$', r'\g<1>', out)
86
84
  return self._template_url
87
85
 
88
86
  def get_url_params(self):
89
87
  url = self.get_template_url()
90
- return re.findall('%\(([^)]+)\)\w', url)
88
+ return re.findall(r'%\(([^)]+)\)\w', url)
91
89
 
92
90
  def get_params_as_string(self):
93
91
  params_list = self.get_url_params()
@@ -122,8 +120,7 @@ class AddControllerManager:
122
120
 
123
121
  def _add_sdc_views_to_main_urls(self, main_urls_path):
124
122
  return self._add_to_urls(main_urls_path, self.controller_name_sc,
125
- "sdc_views.%s.as_view(), name='scd_view_%s'" % (
126
- self.controller_name_tcc, self.controller_name_sc))
123
+ f"sdc_views.{self.controller_name_tcc}.as_view(), name='scd_view_{self.app_name}_{self.controller_name_sc}'")
127
124
 
128
125
  def add_view_class_to_sdc_views(self):
129
126
  fin = open(os.path.join(options.PROJECT_ROOT, self.app_name, "sdc_views.py"), "at", encoding='utf-8')
@@ -145,18 +142,18 @@ class AddControllerManager:
145
142
  self.reps['§TEMPLATEURL§'] = self.get_template_url()
146
143
  self.reps['§TAGNAME§'] = self.prepare_tag_name()
147
144
  self.reps['§TAG§'] = convert_to_tag_name(self.controller_name_cc)
145
+ self.reps['§OVERWRITING§'] = 'true' if not self.check_if_url_is_unique() else 'false'
148
146
  if self.mixins:
149
147
  self.reps['§MIXIN§'] = '.addMixin("%s")' % '", "'.join(self.mixins)
150
148
  else:
151
149
  self.reps['§MIXIN§'] = ''
152
150
  copy_and_prepare(
153
151
  os.path.join(options.SCRIPT_ROOT, "template_files", "controller", "template_controller.js.txt"),
154
- os.path.join(main_static, self.controller_name_sc + ".js"),
152
+ os.path.join(str(main_static), self.controller_name_sc + ".js"),
155
153
  self.reps)
156
154
 
157
155
  copy_and_prepare(os.path.join(options.SCRIPT_ROOT, "template_files", "controller", "template_css.scss"),
158
- os.path.join(main_static,
159
- self.controller_name_sc + ".scss"),
156
+ os.path.join(str(main_static), self.controller_name_sc + ".scss"),
160
157
  self.reps)
161
158
 
162
159
  copy_and_prepare(os.path.join(options.SCRIPT_ROOT, "template_files", "controller", "templade_view.html"),
@@ -74,8 +74,6 @@ class Command(BaseCommand):
74
74
  add_sdc_core = AddControllerManager(app_name, controller_name, mixin_apps)
75
75
  if len(controller_name) == 0:
76
76
  raise CommandError("Controller name must not be empty!", 5)
77
- elif not add_sdc_core.check_if_url_is_unique():
78
- raise CommandError("%s already exists. Controller name has to be unique!" % controller_name, 6)
79
77
 
80
78
 
81
79
  add_sdc_core.add_url_to_url_pattern(self.sdc_settings.get_main_url_path())
@@ -50,7 +50,7 @@ class Command(BaseCommand):
50
50
  'controller_asset_dir': app_asset_path,
51
51
  'sdc_view_file': app_view_path,
52
52
  'sdc_view_file_number': self._get_class_line_number(app_view_path, view_class_name),
53
- 'url': AddControllerManager.get_url(controller_name),
53
+ 'url': AddControllerManager.get_url(app_name, controller_name),
54
54
  }
55
55
 
56
56
  for extention in ['js', 'scss']:
@@ -6,10 +6,12 @@ class Command(BaseCommand):
6
6
  help = 'Get the django url path of a SDC controller if it exists'
7
7
 
8
8
  def add_arguments(self, parser):
9
+ parser.add_argument('app_name', type=str, help='The name of the django_app the controller belongs to')
9
10
  parser.add_argument('controller_name', type=str, help='The name of the controller as snake_case')
10
11
 
11
12
 
12
13
 
13
14
  def handle(self, *args, **options):
14
15
  c_name_sc = options['controller_name']
15
- return AddControllerManager.get_url(c_name_sc)
16
+ app_name = options['app_name']
17
+ return AddControllerManager.get_url(app_name, c_name_sc)
@@ -4,14 +4,23 @@ FROM python:3.13-slim
4
4
  # ===== Install Node.js (LTS) =====
5
5
  # You can pin a specific version by changing "setup_20.x" to "setup_22.x" or similar
6
6
  RUN apt-get update && \
7
- apt-get install -y curl git build-essential && \
7
+ apt-get install -y curl git build-essential python3-dev && \
8
8
  curl -fsSL https://deb.nodesource.com/setup_22.x | bash - && \
9
- apt-get install -y nodejs && \
9
+ apt-get install -y nodejs sqlite3 libsqlite3-dev && \
10
10
  apt-get install -y --no-install-recommends \
11
11
  sudo git nano \
12
12
  g++ libmagic1
13
13
 
14
14
 
15
+ RUN corepack enable
16
+ RUN corepack prepare yarn@stable --activate
17
+
18
+ ARG USERNAME=dev
19
+ ARG USER_UID=1000
20
+ ARG USER_GID=$USER_UID
21
+
22
+ RUN groupadd --gid $USER_GID $USERNAME \
23
+ && useradd --uid $USER_UID --gid $USER_GID -m $USERNAME
15
24
 
16
25
  # ===== Install Poetry =====
17
26
  ENV POETRY_VIRTUALENVS_CREATE=false
@@ -19,10 +28,12 @@ ENV POETRY_HOME="/opt/poetry"
19
28
  ENV PATH="$POETRY_HOME/bin:$PATH"
20
29
  RUN curl -sSL https://install.python-poetry.org | python3 -
21
30
 
22
- # ===== Create workspace and non-root user =====
23
- RUN corepack enable
24
- RUN corepack prepare yarn@stable --activate
25
- RUN poetry config virtualenvs.create false
31
+
32
+ USER $USERNAME
33
+ RUN mkdir /home/$USERNAME/§PROJECT§
34
+ WORKDIR /home/$USERNAME/§PROJECT§
26
35
 
27
36
 
28
- WORKDIR /workspace/app
37
+ # ===== Create workspace and non-root user =====
38
+
39
+ RUN poetry config virtualenvs.create false
@@ -4,7 +4,7 @@
4
4
  "dockerfile": "Dockerfile",
5
5
  "context": ".."
6
6
  },
7
- "remoteUser": "root",
7
+ "remoteUser": "dev",
8
8
  "postCreateCommand": "sh .devcontainer/on_create.sh",
9
9
  "postStartCommand": "sh .devcontainer/on_startup.sh",
10
10
  "customizations": {
@@ -26,6 +26,6 @@
26
26
  "forwardPorts": [
27
27
  8000
28
28
  ],
29
- "workspaceMount": "source=${localWorkspaceFolder},target=/workspace/app,type=bind",
30
- "workspaceFolder": "/workspace/app",
29
+ "workspaceMount": "source=${localWorkspaceFolder},target=/home/dev/§PROJECT§,type=bind",
30
+ "workspaceFolder": "/home/dev/§PROJECT§",
31
31
  }
@@ -2,4 +2,9 @@ poetry config virtualenvs.create false
2
2
 
3
3
  if [ ! -f pyproject.toml ]; then
4
4
  poetry init --no-interaction --name "§PROJECT§" --python ">=3.13,<4.0"
5
- fi
5
+ fi
6
+
7
+ if [ ! -f poetry.lock ]; then
8
+ poetry lock
9
+ fi
10
+ poetry add SimpleDomControl
@@ -0,0 +1,5 @@
1
+ poetry lock
2
+ poetry install --no-root
3
+ yarn install
4
+
5
+ poetry run ./manage.py sdc_update_links
@@ -56,4 +56,4 @@ class §CONTROLLERNAMETITLE§Controller extends AbstractSDC {
56
56
 
57
57
  }
58
58
 
59
- app.register(§CONTROLLERNAMETITLE§Controller)§MIXIN§;
59
+ app.register(§CONTROLLERNAMETITLE§Controller, §OVERWRITING§)§MIXIN§;
@@ -77,6 +77,6 @@
77
77
  "esm": "^3.2.25",
78
78
  "jquery": "^3.7.0",
79
79
  "lodash": "^4.17.21",
80
- "sdc_client": "^0.57.16"
80
+ "sdc_client": "^0.57.18"
81
81
  }
82
82
  }
@@ -0,0 +1,70 @@
1
+ import {AbstractSDC, app, trigger, on} from 'sdc_client';
2
+
3
+ export class SdcNavigationClientController extends AbstractSDC {
4
+
5
+ constructor() {
6
+ super();
7
+ //<sdc-navigation-client></sdc-navigation-client>
8
+ this.menu_id = 0;
9
+ this._navController = null;
10
+
11
+ /**
12
+ * Events is an array of dom events.
13
+ * The pattern is {'event': {'dom_selector': handler}}
14
+ * Uncommend the following line to add events;
15
+ */
16
+ // this.events.unshift({'click': {'.header-sample': (ev, $elem)=> $elem.css('border', '2px solid black')}}});
17
+ }
18
+
19
+ //-------------------------------------------------//
20
+ // Lifecycle handler //
21
+ // - onInit (tag parameter) //
22
+ // - onLoad (DOM not set) //
23
+ // - willShow (DOM set) //
24
+ // - onRefresh (recalled on reload) //
25
+ //-------------------------------------------------//
26
+ // - onRemove //
27
+ //-------------------------------------------------//
28
+
29
+ onInit() {
30
+ }
31
+
32
+ onLoad($html) {
33
+ on('_onResize', this);
34
+ return super.onLoad($html);
35
+ }
36
+
37
+ willShow() {
38
+ this.confirmPageLoaded();
39
+ return super.willShow();
40
+ }
41
+
42
+ _onResize() {
43
+ this.onResize();
44
+ }
45
+
46
+ onResize() {
47
+
48
+ }
49
+
50
+ confirmPageLoaded() {
51
+ trigger('navLoaded', this);
52
+ trigger('changeMenu', this.menu_id);
53
+
54
+ }
55
+
56
+ get navController() {
57
+ return this._navController?.deref();
58
+ }
59
+
60
+ get activeController() {
61
+ return this._navController?.deref().activeController;
62
+ }
63
+
64
+ get navControllerPath() {
65
+ return this._navController?.deref()._origin_target;
66
+ }
67
+
68
+ }
69
+
70
+ app.register(SdcNavigationClientController);
@@ -0,0 +1,59 @@
1
+ import {AbstractSDC, app} from 'sdc_client';
2
+
3
+
4
+ class RegisterController extends AbstractSDC {
5
+
6
+ constructor() {
7
+ super();
8
+ this.contentUrl = "/sdc_view/sdc_user/register"; //<register></register>
9
+
10
+ /**
11
+ * Uncomment the following line to make sure the HTML template
12
+ * of this controller is not cached and reloaded for every instance
13
+ * of this controller.
14
+ */
15
+ // this.contentReload = true;
16
+
17
+ /**
18
+ * Uncomment the following line to make this controller asynchronous.
19
+ * This means that the parent controller finishes loading without
20
+ * waiting for this controller
21
+ */
22
+ // this.load_async = true;
23
+
24
+ /**
25
+ * Events is an array of dom events.
26
+ * The pattern is {'event': {'dom_selector': handler}}
27
+ * Uncomment the following line to add events;
28
+ */
29
+ // this.events.unshift({'click': {'.header-sample': (ev, $elem)=> $elem.css('border', '2px solid black')}});
30
+ }
31
+
32
+ //-------------------------------------------------//
33
+ // Lifecycle handler //
34
+ // - onInit (tag parameter) //
35
+ // - onLoad (DOM not set) //
36
+ // - willShow (DOM set) //
37
+ // - onRefresh (recalled on reload) //
38
+ //-------------------------------------------------//
39
+ // - onRemove //
40
+ //-------------------------------------------------//
41
+
42
+ onInit() {
43
+ }
44
+
45
+ onLoad($html) {
46
+ return super.onLoad($html);
47
+ }
48
+
49
+ willShow() {
50
+ return super.willShow();
51
+ }
52
+
53
+ onRefresh() {
54
+ return super.onRefresh();
55
+ }
56
+
57
+ }
58
+
59
+ app.register(RegisterController, false).addMixin('sdc-model-form');
@@ -1,3 +1,4 @@
1
+ import {} from "./controller/register/register.js";
1
2
  import {} from "./controller/sdc_reset_password/sdc_reset_password.js";
2
3
  import {} from "./controller/sdc_password_forgotten/sdc_password_forgotten.js";
3
4
  import {} from "./controller/sdc_change_password/sdc_change_password.js";
@@ -4,4 +4,5 @@
4
4
  @use "controller/sdc_change_password/sdc_change_password";
5
5
  @use "controller/sdc_password_forgotten/sdc_password_forgotten";
6
6
  @use "controller/sdc_reset_password/sdc_reset_password";
7
+ @use "controller/register/register";
7
8
  @use "controller/sdc_user_nav_btn/sdc_user_nav_btn.scss";
@@ -6,6 +6,7 @@ import {test_utils} from 'sdc_client';
6
6
  import '../src/sdc_user/sdc_user.organizer.js'
7
7
  import '#root/src/sdc_tools/sdc_tools.organizer.js'
8
8
 
9
+ window.gettext = (x) => x;
9
10
 
10
11
  describe('SdcNavigator', () => {
11
12
  let controller;
@@ -137,4 +138,21 @@ describe('SdcResetPassword', () => {
137
138
  expect($div.length).toBeGreaterThan(0);
138
139
  });
139
140
 
141
+ });
142
+
143
+ describe('Register', () => {
144
+ let controller;
145
+
146
+ beforeEach(async () => {
147
+ // Create new controller instance based on the standard process.
148
+ controller = await test_utils.get_controller('register',
149
+ {},
150
+ '<div><h1>Controller Loaded</h1></div>');
151
+ });
152
+
153
+ test('Load Content', async () => {
154
+ const $div = $('body').find('register');
155
+ expect($div.length).toBeGreaterThan(0);
156
+ });
157
+
140
158
  });
@@ -45,8 +45,9 @@ def send_confirm_email(user: SdcModel, home_url: Optional[str] = None):
45
45
  html_content = render_to_string(email_template_name, context=context)
46
46
 
47
47
  msg = EmailMessage(_('Confirmation'), html_content, from_email=settings.DEFAULT_FROM_EMAIL, to=[user.email])
48
- msg.content_subtype = "html" # Main content is now text/html
49
- msg.send(fail_silently=False)
48
+ msg.content_subtype = "html"
49
+ msg.send(fail_silently=True)
50
+
50
51
 
51
52
  def send_email_reet_email(user: SdcModel, home_url: Optional[str] = None):
52
53
  email_template_name = 'email/reset_password.html'
@@ -67,4 +68,4 @@ def send_email_reet_email(user: SdcModel, home_url: Optional[str] = None):
67
68
 
68
69
  msg = EmailMessage(_('Reset Password'), html_content, from_email=settings.DEFAULT_FROM_EMAIL, to=[user.email])
69
70
  msg.content_subtype = "html" # Main content is now text/html
70
- msg.send(fail_silently=False)
71
+ msg.send(fail_silently=True)
@@ -0,0 +1,16 @@
1
+ # Generated by Django 5.2.8 on 2025-11-21 05:23
2
+
3
+ from django.db import migrations
4
+
5
+
6
+ class Migration(migrations.Migration):
7
+
8
+ dependencies = [
9
+ ('sdc_user', '0001_initial'),
10
+ ]
11
+
12
+ operations = [
13
+ migrations.DeleteModel(
14
+ name='SdcUser',
15
+ ),
16
+ ]
@@ -0,0 +1,46 @@
1
+ # Generated by Django 5.2.8 on 2025-12-07 20:02
2
+
3
+ import django.contrib.auth.models
4
+ import django.contrib.auth.validators
5
+ import django.utils.timezone
6
+ import sdc_core.sdc_extentions.models
7
+ from django.db import migrations, models
8
+
9
+
10
+ class Migration(migrations.Migration):
11
+
12
+ initial = True
13
+
14
+ dependencies = [
15
+ ('auth', '0012_alter_user_first_name_max_length'),
16
+ ('sdc_user', '0002_delete_sdcuser'),
17
+ ]
18
+
19
+ operations = [
20
+ migrations.CreateModel(
21
+ name='SdcUser',
22
+ fields=[
23
+ ('id', models.BigAutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')),
24
+ ('password', models.CharField(max_length=128, verbose_name='password')),
25
+ ('last_login', models.DateTimeField(blank=True, null=True, verbose_name='last login')),
26
+ ('is_superuser', models.BooleanField(default=False, help_text='Designates that this user has all permissions without explicitly assigning them.', verbose_name='superuser status')),
27
+ ('username', models.CharField(error_messages={'unique': 'A user with that username already exists.'}, help_text='Required. 150 characters or fewer. Letters, digits and @/./+/-/_ only.', max_length=150, unique=True, validators=[django.contrib.auth.validators.UnicodeUsernameValidator()], verbose_name='username')),
28
+ ('first_name', models.CharField(blank=True, max_length=150, verbose_name='first name')),
29
+ ('last_name', models.CharField(blank=True, max_length=150, verbose_name='last name')),
30
+ ('email', models.EmailField(blank=True, max_length=254, verbose_name='email address')),
31
+ ('is_staff', models.BooleanField(default=False, help_text='Designates whether the user can log into this admin site.', verbose_name='staff status')),
32
+ ('is_active', models.BooleanField(default=True, help_text='Designates whether this user should be treated as active. Unselect this instead of deleting accounts.', verbose_name='active')),
33
+ ('date_joined', models.DateTimeField(default=django.utils.timezone.now, verbose_name='date joined')),
34
+ ('email_confirmed', models.BooleanField(default=False)),
35
+ ('groups', models.ManyToManyField(blank=True, help_text='The groups this user belongs to. A user will get all permissions granted to each of their groups.', related_name='user_set', related_query_name='user', to='auth.group', verbose_name='groups')),
36
+ ('user_permissions', models.ManyToManyField(blank=True, help_text='Specific permissions for this user.', related_name='user_set', related_query_name='user', to='auth.permission', verbose_name='user permissions')),
37
+ ],
38
+ options={
39
+ 'abstract': False,
40
+ },
41
+ bases=(models.Model, sdc_core.sdc_extentions.models.SdcModel),
42
+ managers=[
43
+ ('objects', django.contrib.auth.models.UserManager()),
44
+ ],
45
+ ),
46
+ ]
@@ -5,6 +5,7 @@ from . import sdc_views
5
5
 
6
6
  urlpatterns = [
7
7
  # scd view below
8
+ path('register', sdc_views.Register.as_view(), name='scd_view_sdc_user_register'),
8
9
  path('sdc_reset_password', sdc_views.SdcResetPassword.as_view(), name='scd_view_sdc_reset_password'),
9
10
  path('sdc_password_forgotten', sdc_views.SdcPasswordForgotten.as_view(), name='scd_view_sdc_password_forgotten'),
10
11
  path('sdc_change_password', sdc_views.SdcChangePassword.as_view(), name='scd_view_sdc_change_password'),
@@ -167,3 +167,10 @@ class SdcResetPassword(SDCView):
167
167
  token = request.GET.get("token")
168
168
  form = PasswordResetConfirmForm(initial={"token": token})
169
169
  return render(request, self.template_name, {"form": form})
170
+
171
+
172
+ class Register(SDCView):
173
+ template_name='sdc_user/sdc/register.html'
174
+
175
+ def get_content(self, request, *args, **kwargs):
176
+ return render(request, self.template_name)
@@ -0,0 +1,18 @@
1
+
2
+ {% load i18n %}
3
+ <div class="container-fluid">
4
+ <this.header_top></this.header_top>
5
+ <form>
6
+ <div class="form-container">
7
+
8
+ </div>
9
+ <div class="btn-container">
10
+ <div class="not-create">
11
+ <this.save_btn></this.save_btn>
12
+ </div>
13
+ <div class="not-edit">
14
+ <button class="btn btn-success">{% trans 'Create' %}</button>
15
+ </div>
16
+ </div>
17
+ </form>
18
+ </div>
@@ -10,4 +10,6 @@
10
10
  <button class="btn btn-info">{% trans 'Login' %}</button>
11
11
  </form>
12
12
  <a class="navigation-links" href="*/sdc-password-forgotten">{% trans 'Password forgotten' %}</a>
13
+ <br />
14
+ <a class="navigation-links" href="/register?model=SdcUser&next=..">{% trans 'Register' %}</a>
13
15
  </div>
@@ -6,6 +6,6 @@
6
6
  {{user.username}}</a>
7
7
  {% else %}
8
8
  <a class="nav-link navigation-links" href="/sdc-login">{% trans 'Login' %}</a>
9
- <a class="nav-link navigation-links" href="/sdc-model-form?model=SdcUser&next=..">{% trans 'Register' %}</a>
9
+ <a class="nav-link navigation-links" href="/register?model=SdcUser&next=..">{% trans 'Register' %}</a>
10
10
  {% endif %}
11
11
  </div>
@@ -1,5 +0,0 @@
1
- poetry install --no-root
2
- poetry add SimpleDomControl
3
- yarn install
4
-
5
- poetry run ./manage.py sdc_update_links