fnschool 20251027.81653.841__tar.gz → 20251027.82134.859__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.

Potentially problematic release.


This version of fnschool might be problematic. Click here for more details.

Files changed (143) hide show
  1. {fnschool-20251027.81653.841/src/fnschool.egg-info → fnschool-20251027.82134.859}/PKG-INFO +1 -1
  2. {fnschool-20251027.81653.841 → fnschool-20251027.82134.859}/src/fnschoo1/__init__.py +1 -1
  3. {fnschool-20251027.81653.841 → fnschool-20251027.82134.859}/src/fnschoo1/fnprofile/migrations/0001_initial.py +1 -1
  4. fnschool-20251027.82134.859/src/fnschoo1/fnprofile/migrations/0003_alter_fnuser_options_alter_fnuser_groups_and_more.py +45 -0
  5. {fnschool-20251027.81653.841 → fnschool-20251027.82134.859}/src/fnschoo1/fnprofile/views.py +1 -1
  6. {fnschool-20251027.81653.841 → fnschool-20251027.82134.859}/src/fnschoo1/fnschool/settings.py +2 -2
  7. fnschool-20251027.82134.859/src/fnschoo1/locale/zh_Hans/LC_MESSAGES/django.mo +0 -0
  8. {fnschool-20251027.81653.841 → fnschool-20251027.82134.859}/src/fnschoo1/static/js/fnschool.js +1 -1
  9. {fnschool-20251027.81653.841 → fnschool-20251027.82134.859}/src/fnschoo1/templates/includes/_header.html +1 -1
  10. {fnschool-20251027.81653.841 → fnschool-20251027.82134.859/src/fnschool.egg-info}/PKG-INFO +1 -1
  11. {fnschool-20251027.81653.841 → fnschool-20251027.82134.859}/src/fnschool.egg-info/SOURCES.txt +1 -2
  12. fnschool-20251027.81653.841/src/fnschoo1/fnprofile/migrations/0003_alter_fnuser_options.py +0 -20
  13. fnschool-20251027.81653.841/src/fnschoo1/fnschool/settings_fn_profile_migration_0001.py +0 -180
  14. fnschool-20251027.81653.841/src/fnschoo1/locale/zh_Hans/LC_MESSAGES/django.mo +0 -0
  15. {fnschool-20251027.81653.841 → fnschool-20251027.82134.859}/LICENSE +0 -0
  16. {fnschool-20251027.81653.841 → fnschool-20251027.82134.859}/README.md +0 -0
  17. {fnschool-20251027.81653.841 → fnschool-20251027.82134.859}/pyproject.toml +0 -0
  18. {fnschool-20251027.81653.841 → fnschool-20251027.82134.859}/setup.cfg +0 -0
  19. {fnschool-20251027.81653.841 → fnschool-20251027.82134.859}/src/fnschoo1/canteen/__init__.py +0 -0
  20. {fnschool-20251027.81653.841 → fnschool-20251027.82134.859}/src/fnschoo1/canteen/admin.py +0 -0
  21. {fnschool-20251027.81653.841 → fnschool-20251027.82134.859}/src/fnschoo1/canteen/apps.py +0 -0
  22. {fnschool-20251027.81653.841 → fnschool-20251027.82134.859}/src/fnschoo1/canteen/forms.py +0 -0
  23. {fnschool-20251027.81653.841 → fnschool-20251027.82134.859}/src/fnschoo1/canteen/migrations/0001_initial.py +0 -0
  24. {fnschool-20251027.81653.841 → fnschool-20251027.82134.859}/src/fnschoo1/canteen/migrations/0002_ingredient_is_disabled.py +0 -0
  25. {fnschool-20251027.81653.841 → fnschool-20251027.82134.859}/src/fnschoo1/canteen/migrations/0003_consumption_is_disabled_alter_ingredient_is_disabled.py +0 -0
  26. {fnschool-20251027.81653.841 → fnschool-20251027.82134.859}/src/fnschoo1/canteen/migrations/0004_alter_ingredient_name_category_and_more.py +0 -0
  27. {fnschool-20251027.81653.841 → fnschool-20251027.82134.859}/src/fnschoo1/canteen/migrations/0005_alter_category_created_at_alter_category_name_and_more.py +0 -0
  28. {fnschool-20251027.81653.841 → fnschool-20251027.82134.859}/src/fnschoo1/canteen/migrations/0006_category_is_disabled_alter_category_user_and_more.py +0 -0
  29. {fnschool-20251027.81653.841 → fnschool-20251027.82134.859}/src/fnschoo1/canteen/migrations/0007_alter_consumption_amount_used_and_more.py +0 -0
  30. {fnschool-20251027.81653.841 → fnschool-20251027.82134.859}/src/fnschoo1/canteen/migrations/0008_category_abbreviation_mealtype.py +0 -0
  31. {fnschool-20251027.81653.841 → fnschool-20251027.82134.859}/src/fnschoo1/canteen/migrations/0009_alter_category_abbreviation_and_more.py +0 -0
  32. {fnschool-20251027.81653.841 → fnschool-20251027.82134.859}/src/fnschoo1/canteen/migrations/0010_alter_consumption_options_alter_ingredient_options_and_more.py +0 -0
  33. {fnschool-20251027.81653.841 → fnschool-20251027.82134.859}/src/fnschoo1/canteen/migrations/0011_category_pin_to_consumptions_top.py +0 -0
  34. {fnschool-20251027.81653.841 → fnschool-20251027.82134.859}/src/fnschoo1/canteen/migrations/0012_alter_ingredient_storage_date.py +0 -0
  35. {fnschool-20251027.81653.841 → fnschool-20251027.82134.859}/src/fnschoo1/canteen/migrations/0013_alter_consumption_options_alter_ingredient_options_and_more.py +0 -0
  36. {fnschool-20251027.81653.841 → fnschool-20251027.82134.859}/src/fnschoo1/canteen/migrations/0014_category_priority.py +0 -0
  37. {fnschool-20251027.81653.841 → fnschool-20251027.82134.859}/src/fnschoo1/canteen/migrations/0015_alter_category_options_alter_category_priority.py +0 -0
  38. {fnschool-20251027.81653.841 → fnschool-20251027.82134.859}/src/fnschoo1/canteen/migrations/0016_consumption_unique_ingredient_date_of_using.py +0 -0
  39. {fnschool-20251027.81653.841 → fnschool-20251027.82134.859}/src/fnschoo1/canteen/migrations/0017_ingredient_updated_at_alter_category_created_at_and_more.py +0 -0
  40. {fnschool-20251027.81653.841 → fnschool-20251027.82134.859}/src/fnschoo1/canteen/migrations/0018_alter_ingredient_updated_at.py +0 -0
  41. {fnschool-20251027.81653.841 → fnschool-20251027.82134.859}/src/fnschoo1/canteen/migrations/0019_category_updated_at_ingredient_created_at_and_more.py +0 -0
  42. {fnschool-20251027.81653.841 → fnschool-20251027.82134.859}/src/fnschoo1/canteen/migrations/0020_alter_ingredient_created_at.py +0 -0
  43. {fnschool-20251027.81653.841 → fnschool-20251027.82134.859}/src/fnschoo1/canteen/migrations/__init__.py +0 -0
  44. {fnschool-20251027.81653.841 → fnschool-20251027.82134.859}/src/fnschoo1/canteen/models.py +0 -0
  45. {fnschool-20251027.81653.841 → fnschool-20251027.82134.859}/src/fnschoo1/canteen/templates/canteen/category/create.html +0 -0
  46. {fnschool-20251027.81653.841 → fnschool-20251027.82134.859}/src/fnschoo1/canteen/templates/canteen/category/delete.html +0 -0
  47. {fnschool-20251027.81653.841 → fnschool-20251027.82134.859}/src/fnschoo1/canteen/templates/canteen/category/list.html +0 -0
  48. {fnschool-20251027.81653.841 → fnschool-20251027.82134.859}/src/fnschoo1/canteen/templates/canteen/category/update.html +0 -0
  49. {fnschool-20251027.81653.841 → fnschool-20251027.82134.859}/src/fnschoo1/canteen/templates/canteen/close.html +0 -0
  50. {fnschool-20251027.81653.841 → fnschool-20251027.82134.859}/src/fnschoo1/canteen/templates/canteen/consumption/_create.html +0 -0
  51. {fnschool-20251027.81653.841 → fnschool-20251027.82134.859}/src/fnschoo1/canteen/templates/canteen/consumption/create.html +0 -0
  52. {fnschool-20251027.81653.841 → fnschool-20251027.82134.859}/src/fnschoo1/canteen/templates/canteen/ingredient/close.html +0 -0
  53. {fnschool-20251027.81653.841 → fnschool-20251027.82134.859}/src/fnschoo1/canteen/templates/canteen/ingredient/create.html +0 -0
  54. {fnschool-20251027.81653.841 → fnschool-20251027.82134.859}/src/fnschoo1/canteen/templates/canteen/ingredient/create_one.html +0 -0
  55. {fnschool-20251027.81653.841 → fnschool-20251027.82134.859}/src/fnschoo1/canteen/templates/canteen/ingredient/delete.html +0 -0
  56. {fnschool-20251027.81653.841 → fnschool-20251027.82134.859}/src/fnschoo1/canteen/templates/canteen/ingredient/list.html +0 -0
  57. {fnschool-20251027.81653.841 → fnschool-20251027.82134.859}/src/fnschoo1/canteen/templates/canteen/ingredient/update.html +0 -0
  58. {fnschool-20251027.81653.841 → fnschool-20251027.82134.859}/src/fnschoo1/canteen/templates/canteen/meal_type/create.html +0 -0
  59. {fnschool-20251027.81653.841 → fnschool-20251027.82134.859}/src/fnschoo1/canteen/templates/canteen/meal_type/delete.html +0 -0
  60. {fnschool-20251027.81653.841 → fnschool-20251027.82134.859}/src/fnschoo1/canteen/templates/canteen/meal_type/list.html +0 -0
  61. {fnschool-20251027.81653.841 → fnschool-20251027.82134.859}/src/fnschoo1/canteen/templates/canteen/meal_type/update.html +0 -0
  62. {fnschool-20251027.81653.841 → fnschool-20251027.82134.859}/src/fnschoo1/canteen/tests.py +0 -0
  63. {fnschool-20251027.81653.841 → fnschool-20251027.82134.859}/src/fnschoo1/canteen/urls.py +0 -0
  64. {fnschool-20251027.81653.841 → fnschool-20251027.82134.859}/src/fnschoo1/canteen/views.py +0 -0
  65. {fnschool-20251027.81653.841 → fnschool-20251027.82134.859}/src/fnschoo1/canteen/workbook/__init__.py +0 -0
  66. {fnschool-20251027.81653.841 → fnschool-20251027.82134.859}/src/fnschoo1/canteen/workbook/generate.py +0 -0
  67. {fnschool-20251027.81653.841 → fnschool-20251027.82134.859}/src/fnschoo1/fnprofile/__init__.py +0 -0
  68. {fnschool-20251027.81653.841 → fnschool-20251027.82134.859}/src/fnschoo1/fnprofile/admin.py +0 -0
  69. {fnschool-20251027.81653.841 → fnschool-20251027.82134.859}/src/fnschoo1/fnprofile/apps.py +0 -0
  70. {fnschool-20251027.81653.841 → fnschool-20251027.82134.859}/src/fnschoo1/fnprofile/forms.py +0 -0
  71. {fnschool-20251027.81653.841 → fnschool-20251027.82134.859}/src/fnschoo1/fnprofile/migrations/0002_auto_20251026_2235.py +0 -0
  72. {fnschool-20251027.81653.841 → fnschool-20251027.82134.859}/src/fnschoo1/fnprofile/migrations/__init__.py +0 -0
  73. {fnschool-20251027.81653.841 → fnschool-20251027.82134.859}/src/fnschoo1/fnprofile/models.py +0 -0
  74. {fnschool-20251027.81653.841 → fnschool-20251027.82134.859}/src/fnschoo1/fnprofile/signals.py +0 -0
  75. {fnschool-20251027.81653.841 → fnschool-20251027.82134.859}/src/fnschoo1/fnprofile/templates/fnprofile/create.html +0 -0
  76. {fnschool-20251027.81653.841 → fnschool-20251027.82134.859}/src/fnschoo1/fnprofile/templates/fnprofile/detail.html +0 -0
  77. {fnschool-20251027.81653.841 → fnschool-20251027.82134.859}/src/fnschoo1/fnprofile/templates/fnprofile/edit.html +0 -0
  78. {fnschool-20251027.81653.841 → fnschool-20251027.82134.859}/src/fnschoo1/fnprofile/templates/fnprofile/log_in.html +0 -0
  79. {fnschool-20251027.81653.841 → fnschool-20251027.82134.859}/src/fnschoo1/fnprofile/templates/fnprofile/log_out.html +0 -0
  80. {fnschool-20251027.81653.841 → fnschool-20251027.82134.859}/src/fnschoo1/fnprofile/tests.py +0 -0
  81. {fnschool-20251027.81653.841 → fnschool-20251027.82134.859}/src/fnschoo1/fnprofile/urls.py +0 -0
  82. {fnschool-20251027.81653.841 → fnschool-20251027.82134.859}/src/fnschoo1/fnschool/__init__.py +0 -0
  83. {fnschool-20251027.81653.841 → fnschool-20251027.82134.859}/src/fnschoo1/fnschool/_settings.py +0 -0
  84. {fnschool-20251027.81653.841 → fnschool-20251027.82134.859}/src/fnschoo1/fnschool/asgi.py +0 -0
  85. {fnschool-20251027.81653.841 → fnschool-20251027.82134.859}/src/fnschoo1/fnschool/templatetags/__init__.py +0 -0
  86. {fnschool-20251027.81653.841 → fnschool-20251027.82134.859}/src/fnschoo1/fnschool/templatetags/fnschool_tags.py +0 -0
  87. {fnschool-20251027.81653.841 → fnschool-20251027.82134.859}/src/fnschoo1/fnschool/urls.py +0 -0
  88. {fnschool-20251027.81653.841 → fnschool-20251027.82134.859}/src/fnschoo1/fnschool/views.py +0 -0
  89. {fnschool-20251027.81653.841 → fnschool-20251027.82134.859}/src/fnschoo1/fnschool/wsgi.py +0 -0
  90. {fnschool-20251027.81653.841 → fnschool-20251027.82134.859}/src/fnschoo1/locale/en/LC_MESSAGES/django.mo +0 -0
  91. {fnschool-20251027.81653.841 → fnschool-20251027.82134.859}/src/fnschoo1/manage.py +0 -0
  92. {fnschool-20251027.81653.841 → fnschool-20251027.82134.859}/src/fnschoo1/profiles/__init__.py +0 -0
  93. {fnschool-20251027.81653.841 → fnschool-20251027.82134.859}/src/fnschoo1/profiles/admin.py +0 -0
  94. {fnschool-20251027.81653.841 → fnschool-20251027.82134.859}/src/fnschoo1/profiles/apps.py +0 -0
  95. {fnschool-20251027.81653.841 → fnschool-20251027.82134.859}/src/fnschoo1/profiles/forms.py +0 -0
  96. {fnschool-20251027.81653.841 → fnschool-20251027.82134.859}/src/fnschoo1/profiles/migrations/0001_initial.py +0 -0
  97. {fnschool-20251027.81653.841 → fnschool-20251027.82134.859}/src/fnschoo1/profiles/migrations/0002_alter_profile_bio.py +0 -0
  98. {fnschool-20251027.81653.841 → fnschool-20251027.82134.859}/src/fnschoo1/profiles/migrations/0003_alter_profile_options_alter_profile_address_and_more.py +0 -0
  99. {fnschool-20251027.81653.841 → fnschool-20251027.82134.859}/src/fnschoo1/profiles/migrations/0004_profile_gender.py +0 -0
  100. {fnschool-20251027.81653.841 → fnschool-20251027.82134.859}/src/fnschoo1/profiles/migrations/0005_alter_profile_gender.py +0 -0
  101. {fnschool-20251027.81653.841 → fnschool-20251027.82134.859}/src/fnschoo1/profiles/migrations/0006_profile_created_at_profile_updated_at.py +0 -0
  102. {fnschool-20251027.81653.841 → fnschool-20251027.82134.859}/src/fnschoo1/profiles/migrations/0007_alter_profile_created_at.py +0 -0
  103. {fnschool-20251027.81653.841 → fnschool-20251027.82134.859}/src/fnschoo1/profiles/migrations/0008_alter_profile_groups_alter_profile_user_permissions.py +0 -0
  104. {fnschool-20251027.81653.841 → fnschool-20251027.82134.859}/src/fnschoo1/profiles/migrations/__init__.py +0 -0
  105. {fnschool-20251027.81653.841 → fnschool-20251027.82134.859}/src/fnschoo1/profiles/models.py +0 -0
  106. {fnschool-20251027.81653.841 → fnschool-20251027.82134.859}/src/fnschoo1/profiles/signals.py +0 -0
  107. {fnschool-20251027.81653.841 → fnschool-20251027.82134.859}/src/fnschoo1/profiles/templates/profiles/create.html +0 -0
  108. {fnschool-20251027.81653.841 → fnschool-20251027.82134.859}/src/fnschoo1/profiles/templates/profiles/detail.html +0 -0
  109. {fnschool-20251027.81653.841 → fnschool-20251027.82134.859}/src/fnschoo1/profiles/templates/profiles/edit.html +0 -0
  110. {fnschool-20251027.81653.841 → fnschool-20251027.82134.859}/src/fnschoo1/profiles/templates/profiles/log_in.html +0 -0
  111. {fnschool-20251027.81653.841 → fnschool-20251027.82134.859}/src/fnschoo1/profiles/templates/profiles/log_out.html +0 -0
  112. {fnschool-20251027.81653.841 → fnschool-20251027.82134.859}/src/fnschoo1/profiles/tests.py +0 -0
  113. {fnschool-20251027.81653.841 → fnschool-20251027.82134.859}/src/fnschoo1/profiles/urls.py +0 -0
  114. {fnschool-20251027.81653.841 → fnschool-20251027.82134.859}/src/fnschoo1/profiles/views.py +0 -0
  115. {fnschool-20251027.81653.841 → fnschool-20251027.82134.859}/src/fnschoo1/static/css/bootstrap.min.css +0 -0
  116. {fnschool-20251027.81653.841 → fnschool-20251027.82134.859}/src/fnschoo1/static/css/fnschool.css +0 -0
  117. {fnschool-20251027.81653.841 → fnschool-20251027.82134.859}/src/fnschoo1/static/images/favicon.ico +0 -0
  118. {fnschool-20251027.81653.841 → fnschool-20251027.82134.859}/src/fnschoo1/static/js/bootstrap.bundle.min.js +0 -0
  119. {fnschool-20251027.81653.841 → fnschool-20251027.82134.859}/src/fnschoo1/static/js/bootstrap.min.js +0 -0
  120. {fnschool-20251027.81653.841 → fnschool-20251027.82134.859}/src/fnschoo1/static/js/jquery.min.js +0 -0
  121. {fnschool-20251027.81653.841 → fnschool-20251027.82134.859}/src/fnschoo1/static/js/jquery.slim.min.js +0 -0
  122. {fnschool-20251027.81653.841 → fnschool-20251027.82134.859}/src/fnschoo1/static/js/popper.min.js +0 -0
  123. {fnschool-20251027.81653.841 → fnschool-20251027.82134.859}/src/fnschoo1/templates/base/_content.html +0 -0
  124. {fnschool-20251027.81653.841 → fnschool-20251027.82134.859}/src/fnschoo1/templates/base/_css.html +0 -0
  125. {fnschool-20251027.81653.841 → fnschool-20251027.82134.859}/src/fnschoo1/templates/base/_js.html +0 -0
  126. {fnschool-20251027.81653.841 → fnschool-20251027.82134.859}/src/fnschoo1/templates/base/content.html +0 -0
  127. {fnschool-20251027.81653.841 → fnschool-20251027.82134.859}/src/fnschoo1/templates/base/document.html +0 -0
  128. {fnschool-20251027.81653.841 → fnschool-20251027.82134.859}/src/fnschoo1/templates/close.html +0 -0
  129. {fnschool-20251027.81653.841 → fnschool-20251027.82134.859}/src/fnschoo1/templates/home.html +0 -0
  130. {fnschool-20251027.81653.841 → fnschool-20251027.82134.859}/src/fnschoo1/templates/includes/_footer.html +0 -0
  131. {fnschool-20251027.81653.841 → fnschool-20251027.82134.859}/src/fnschoo1/templates/includes/_navigation.html +0 -0
  132. {fnschool-20251027.81653.841 → fnschool-20251027.82134.859}/src/fnschoo1/templates/includes/_paginator.html +0 -0
  133. {fnschool-20251027.81653.841 → fnschool-20251027.82134.859}/src/fnschoo1/templates/registration/logged_out.html +0 -0
  134. {fnschool-20251027.81653.841 → fnschool-20251027.82134.859}/src/fnschoo1/templates/registration/login.html +0 -0
  135. {fnschool-20251027.81653.841 → fnschool-20251027.82134.859}/src/fnschool.egg-info/SOURCES.txt.py +0 -0
  136. {fnschool-20251027.81653.841 → fnschool-20251027.82134.859}/src/fnschool.egg-info/dependency_links.txt +0 -0
  137. {fnschool-20251027.81653.841 → fnschool-20251027.82134.859}/src/fnschool.egg-info/dependency_links.txt.py +0 -0
  138. {fnschool-20251027.81653.841 → fnschool-20251027.82134.859}/src/fnschool.egg-info/entry_points.txt +0 -0
  139. {fnschool-20251027.81653.841 → fnschool-20251027.82134.859}/src/fnschool.egg-info/entry_points.txt.py +0 -0
  140. {fnschool-20251027.81653.841 → fnschool-20251027.82134.859}/src/fnschool.egg-info/requires.txt +0 -0
  141. {fnschool-20251027.81653.841 → fnschool-20251027.82134.859}/src/fnschool.egg-info/requires.txt.py +0 -0
  142. {fnschool-20251027.81653.841 → fnschool-20251027.82134.859}/src/fnschool.egg-info/top_level.txt +0 -0
  143. {fnschool-20251027.81653.841 → fnschool-20251027.82134.859}/src/fnschool.egg-info/top_level.txt.py +0 -0
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: fnschool
3
- Version: 20251027.81653.841
3
+ Version: 20251027.82134.859
4
4
  Summary: Just some school related scripts, without any ambition.
5
5
  Author-email: larryw3i <larryw3i@163.com>, Larry Wei <larryw3i@126.com>, Larry W3i <larryw3i@yeah.net>
6
6
  Maintainer-email: larryw3i <larryw3i@163.com>, Larry Wei <larryw3i@126.com>
@@ -6,4 +6,4 @@ import random
6
6
  import sys
7
7
  from pathlib import Path
8
8
 
9
- __version__ = "20251027.81653.841"
9
+ __version__ = "20251027.82134.859"
@@ -1,4 +1,4 @@
1
- # Generated by Django 4.2.25 on 2025-10-26 14:18
1
+ # Generated by Django 4.2.25 on 2025-10-27 13:10
2
2
 
3
3
  import django.contrib.auth.models
4
4
  import django.contrib.auth.validators
@@ -0,0 +1,45 @@
1
+ # Generated by Django 4.2.25 on 2025-10-27 13:34
2
+
3
+ from django.db import migrations, models
4
+
5
+
6
+ class Migration(migrations.Migration):
7
+
8
+ dependencies = [
9
+ ("auth", "0012_alter_user_first_name_max_length"),
10
+ ("fnprofile", "0002_auto_20251026_2235"),
11
+ ]
12
+
13
+ operations = [
14
+ migrations.AlterModelOptions(
15
+ name="fnuser",
16
+ options={
17
+ "verbose_name": "用户信息",
18
+ "verbose_name_plural": "用户信息",
19
+ },
20
+ ),
21
+ migrations.AlterField(
22
+ model_name="fnuser",
23
+ name="groups",
24
+ field=models.ManyToManyField(
25
+ blank=True,
26
+ help_text="这个用户所属的组。",
27
+ related_name="fn_user_groups",
28
+ related_query_name="fn_user",
29
+ to="auth.group",
30
+ verbose_name="groups",
31
+ ),
32
+ ),
33
+ migrations.AlterField(
34
+ model_name="fnuser",
35
+ name="user_permissions",
36
+ field=models.ManyToManyField(
37
+ blank=True,
38
+ help_text="给这个用户指定权限。",
39
+ related_name="fn_user_permissions",
40
+ related_query_name="fn_user",
41
+ to="auth.permission",
42
+ verbose_name="user permissions",
43
+ ),
44
+ ),
45
+ ]
@@ -58,7 +58,7 @@ def fnprofile_edit(request):
58
58
  if form.is_valid():
59
59
  form.save()
60
60
  messages.success(
61
- request, _("Fnuser has been updated successfully!")
61
+ request, _("Your information has been updated successfully!")
62
62
  )
63
63
  return redirect("home")
64
64
  else:
@@ -49,7 +49,7 @@ INSTALLED_APPS = [
49
49
  # fnschool apps.
50
50
  "fnschool",
51
51
  "fnprofile",
52
- "profiles",
52
+ # "profiles",
53
53
  "canteen",
54
54
  ]
55
55
 
@@ -108,7 +108,7 @@ DATABASES = {
108
108
  # Password validation
109
109
  # https://docs.djangoproject.com/en/4.2/ref/settings/#auth-password-validators
110
110
  AUTH_USER_MODEL = "fnprofile.Fnuser"
111
- ## AUTH_USER_MODEL = "profiles.Profile"
111
+ ## AUTH_USER_MODEL = "auth.User"
112
112
  AUTH_PASSWORD_VALIDATORS = [
113
113
  {
114
114
  "NAME": "django.contrib.auth.password_validation.UserAttributeSimilarityValidator",
@@ -3,7 +3,7 @@ $(document).ready(function () {
3
3
  if (messages.length) {
4
4
  messages.css({
5
5
  position: 'absolute',
6
- top: $('.navbar').height(),
6
+ top: $('.navbar').height() * 1.45,
7
7
  width: '100%',
8
8
  })
9
9
  setTimeout(function () {
@@ -92,7 +92,7 @@
92
92
  {% if messages %}
93
93
  <div class="messages">
94
94
  {% for message in messages %}
95
- <div class="alert alert-{{ message.tags }}">
95
+ <div class="alert alert-{{ message.tags }} p-2">
96
96
  {{ message }}
97
97
  <span class="btn-close mx-2" title="{% trans "Hide messages." %}"></span>
98
98
  </div>
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: fnschool
3
- Version: 20251027.81653.841
3
+ Version: 20251027.82134.859
4
4
  Summary: Just some school related scripts, without any ambition.
5
5
  Author-email: larryw3i <larryw3i@163.com>, Larry Wei <larryw3i@126.com>, Larry W3i <larryw3i@yeah.net>
6
6
  Maintainer-email: larryw3i <larryw3i@163.com>, Larry Wei <larryw3i@126.com>
@@ -62,7 +62,7 @@ src/fnschoo1/fnprofile/urls.py
62
62
  src/fnschoo1/fnprofile/views.py
63
63
  src/fnschoo1/fnprofile/migrations/0001_initial.py
64
64
  src/fnschoo1/fnprofile/migrations/0002_auto_20251026_2235.py
65
- src/fnschoo1/fnprofile/migrations/0003_alter_fnuser_options.py
65
+ src/fnschoo1/fnprofile/migrations/0003_alter_fnuser_options_alter_fnuser_groups_and_more.py
66
66
  src/fnschoo1/fnprofile/migrations/__init__.py
67
67
  src/fnschoo1/fnprofile/templates/fnprofile/create.html
68
68
  src/fnschoo1/fnprofile/templates/fnprofile/detail.html
@@ -73,7 +73,6 @@ src/fnschoo1/fnschool/__init__.py
73
73
  src/fnschoo1/fnschool/_settings.py
74
74
  src/fnschoo1/fnschool/asgi.py
75
75
  src/fnschoo1/fnschool/settings.py
76
- src/fnschoo1/fnschool/settings_fn_profile_migration_0001.py
77
76
  src/fnschoo1/fnschool/urls.py
78
77
  src/fnschoo1/fnschool/views.py
79
78
  src/fnschoo1/fnschool/wsgi.py
@@ -1,20 +0,0 @@
1
- # Generated by Django 4.2.25 on 2025-10-26 15:42
2
-
3
- from django.db import migrations
4
-
5
-
6
- class Migration(migrations.Migration):
7
-
8
- dependencies = [
9
- ("fnprofile", "0002_auto_20251026_2235"),
10
- ]
11
-
12
- operations = [
13
- migrations.AlterModelOptions(
14
- name="fnuser",
15
- options={
16
- "verbose_name": "User Information",
17
- "verbose_name_plural": "User Information",
18
- },
19
- ),
20
- ]
@@ -1,180 +0,0 @@
1
- """
2
- Django settings for fnschool project.
3
-
4
- Generated by 'django-admin startproject' using Django 4.2.24.
5
-
6
- For more information on this file, see
7
- https://docs.djangoproject.com/en/4.2/topics/settings/
8
-
9
- For the full list of settings and their values, see
10
- https://docs.djangoproject.com/en/4.2/ref/settings/
11
- """
12
-
13
- import os
14
- from pathlib import Path
15
-
16
- from django.urls import reverse_lazy
17
- from django.utils.translation import gettext_lazy as _
18
-
19
- # Build paths inside the project like this: BASE_DIR / 'subdir'.
20
- BASE_DIR = Path(__file__).resolve().parent.parent
21
-
22
-
23
- # Quick-start development settings - unsuitable for production
24
- # See https://docs.djangoproject.com/en/4.2/howto/deployment/checklist/
25
-
26
- # SECURITY WARNING: keep the secret key used in production secret!
27
- SECRET_KEY = (
28
- "django-insecure-vt(#owf#cbx)yo$9m^=%&-heu&txuc23&a5b=a=u@=274)2!9w"
29
- )
30
-
31
- # SECURITY WARNING: don't run with debug turned on in production!
32
- DEBUG = True
33
-
34
- ALLOWED_HOSTS = []
35
-
36
-
37
- # Application definition
38
-
39
- INSTALLED_APPS = [
40
- "django.contrib.admin",
41
- "django.contrib.auth",
42
- "django.contrib.contenttypes",
43
- "django.contrib.sessions",
44
- "django.contrib.messages",
45
- "django.contrib.staticfiles",
46
- # site apps.
47
- "crispy_forms",
48
- "crispy_bootstrap5", # For Bootstrap 5
49
- # fnschool apps.
50
- "fnschool",
51
- "fnprofile",
52
- "profiles",
53
- "canteen",
54
- ]
55
-
56
- CRISPY_ALLOWED_TEMPLATE_PACKS = "bootstrap5"
57
- CRISPY_TEMPLATE_PACK = "bootstrap5"
58
-
59
- MIDDLEWARE = [
60
- "django.middleware.security.SecurityMiddleware",
61
- "django.contrib.sessions.middleware.SessionMiddleware",
62
- "django.middleware.locale.LocaleMiddleware",
63
- "django.middleware.common.CommonMiddleware",
64
- "django.middleware.csrf.CsrfViewMiddleware",
65
- "django.contrib.auth.middleware.AuthenticationMiddleware",
66
- "django.contrib.messages.middleware.MessageMiddleware",
67
- "django.middleware.clickjacking.XFrameOptionsMiddleware",
68
- ]
69
-
70
- ROOT_URLCONF = "fnschool.urls"
71
-
72
- TEMPLATES = [
73
- {
74
- "BACKEND": "django.template.backends.django.DjangoTemplates",
75
- "DIRS": [
76
- os.path.join(BASE_DIR, "templates"),
77
- ],
78
- "APP_DIRS": True,
79
- "OPTIONS": {
80
- "context_processors": [
81
- "django.template.context_processors.debug",
82
- "django.template.context_processors.request",
83
- "django.contrib.auth.context_processors.auth",
84
- "django.contrib.messages.context_processors.messages",
85
- "django.template.context_processors.i18n",
86
- ],
87
- "builtins": [
88
- "django.templatetags.i18n",
89
- ],
90
- },
91
- },
92
- ]
93
-
94
- WSGI_APPLICATION = "fnschool.wsgi.application"
95
-
96
-
97
- # Database
98
- # https://docs.djangoproject.com/en/4.2/ref/settings/#databases
99
-
100
- DATABASES = {
101
- "default": {
102
- "ENGINE": "django.db.backends.sqlite3",
103
- "NAME": BASE_DIR / "db.sqlite3",
104
- }
105
- }
106
-
107
-
108
- # Password validation
109
- # https://docs.djangoproject.com/en/4.2/ref/settings/#auth-password-validators
110
- ## AUTH_USER_MODEL = "fn_profile.FnUser"
111
- AUTH_USER_MODEL = "profiles.Profile"
112
- AUTH_PASSWORD_VALIDATORS = [
113
- {
114
- "NAME": "django.contrib.auth.password_validation.UserAttributeSimilarityValidator",
115
- },
116
- {
117
- "NAME": "django.contrib.auth.password_validation.MinimumLengthValidator",
118
- },
119
- {
120
- "NAME": "django.contrib.auth.password_validation.CommonPasswordValidator",
121
- },
122
- {
123
- "NAME": "django.contrib.auth.password_validation.NumericPasswordValidator",
124
- },
125
- ]
126
-
127
-
128
- # Internationalization
129
- # https://docs.djangoproject.com/en/4.2/topics/i18n/
130
-
131
- USE_TZ = True
132
- TIME_ZONE = "Asia/Shanghai"
133
-
134
- USE_I18N = True
135
- USE_L10N = True
136
-
137
- LANGUAGE_CODE = "zh-hans"
138
-
139
- LANGUAGES = [
140
- ("en", _("English")),
141
- ("es", _("Spanish")),
142
- ("fr", _("French")),
143
- ("zh-hans", _("Simplified Chinese")),
144
- ]
145
- LOCALE_PATHS = [
146
- os.path.join(BASE_DIR, "locale"),
147
- ]
148
-
149
- USE_TZ = True
150
-
151
-
152
- # Static files (CSS, JavaScript, Images)
153
- # https://docs.djangoproject.com/en/4.2/howto/static-files/
154
-
155
- STATIC_URL = "/static/"
156
- STATICFILES_DIRS = [
157
- os.path.join(BASE_DIR, "static")
158
- ] # Optional: for additional static directories
159
- STATIC_ROOT = os.path.join(BASE_DIR, "static_collected")
160
-
161
- # Default primary key field type
162
- # https://docs.djangoproject.com/en/4.2/ref/settings/#default-auto-field
163
-
164
- DEFAULT_AUTO_FIELD = "django.db.models.BigAutoField"
165
-
166
- MEDIA_URL = "/media/"
167
- MEDIA_ROOT = os.path.join(BASE_DIR, "media")
168
-
169
- LOGIN_URL = reverse_lazy("profile:log_in")
170
-
171
- _settings_path = Path(__file__).parent / "_settings.py"
172
- if _settings_path.exists():
173
- print(
174
- ('Custom configuration "{_settings_path}" has been used.').format(
175
- _settings_path=_settings_path.as_posix()
176
- )
177
- )
178
- from ._settings import *
179
-
180
- # The end.