fnschool 20250109.80531.837__tar.gz → 20251011.81638.854__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 (285) hide show
  1. fnschool-20251011.81638.854/PKG-INFO +179 -0
  2. {fnschool-20250109.80531.837 → fnschool-20251011.81638.854}/pyproject.toml +12 -10
  3. fnschool-20251011.81638.854/src/fnschoo1/__init__.py +53 -0
  4. fnschool-20251011.81638.854/src/fnschoo1/canteen/admin.py +3 -0
  5. fnschool-20251011.81638.854/src/fnschoo1/canteen/apps.py +6 -0
  6. fnschool-20251011.81638.854/src/fnschoo1/canteen/forms.py +84 -0
  7. fnschool-20251011.81638.854/src/fnschoo1/canteen/migrations/0001_initial.py +119 -0
  8. fnschool-20251011.81638.854/src/fnschoo1/canteen/migrations/0002_ingredient_is_disabled.py +20 -0
  9. fnschool-20251011.81638.854/src/fnschoo1/canteen/migrations/0003_consumption_is_disabled_alter_ingredient_is_disabled.py +23 -0
  10. fnschool-20251011.81638.854/src/fnschoo1/canteen/migrations/0004_alter_ingredient_name_category_and_more.py +66 -0
  11. fnschool-20251011.81638.854/src/fnschoo1/canteen/migrations/0005_alter_category_created_at_alter_category_name_and_more.py +41 -0
  12. fnschool-20251011.81638.854/src/fnschoo1/canteen/migrations/0006_category_is_disabled_alter_category_user_and_more.py +49 -0
  13. fnschool-20251011.81638.854/src/fnschoo1/canteen/migrations/0007_alter_consumption_amount_used_and_more.py +30 -0
  14. fnschool-20251011.81638.854/src/fnschoo1/canteen/migrations/0008_category_abbreviation_mealtype.py +67 -0
  15. fnschool-20251011.81638.854/src/fnschoo1/canteen/migrations/0009_alter_category_abbreviation_and_more.py +55 -0
  16. fnschool-20251011.81638.854/src/fnschoo1/canteen/migrations/0010_alter_consumption_options_alter_ingredient_options_and_more.py +215 -0
  17. fnschool-20251011.81638.854/src/fnschoo1/canteen/migrations/0011_category_pin_to_consumptions_top.py +23 -0
  18. fnschool-20251011.81638.854/src/fnschoo1/canteen/migrations/0012_alter_ingredient_storage_date.py +18 -0
  19. fnschool-20251011.81638.854/src/fnschoo1/canteen/models.py +179 -0
  20. fnschool-20251011.81638.854/src/fnschoo1/canteen/templates/canteen/category/create.html +17 -0
  21. fnschool-20251011.81638.854/src/fnschoo1/canteen/templates/canteen/category/delete.html +61 -0
  22. fnschool-20251011.81638.854/src/fnschoo1/canteen/templates/canteen/category/list.html +63 -0
  23. fnschool-20251011.81638.854/src/fnschoo1/canteen/templates/canteen/category/update.html +23 -0
  24. fnschool-20251011.81638.854/src/fnschoo1/canteen/templates/canteen/close.html +11 -0
  25. fnschool-20251011.81638.854/src/fnschoo1/canteen/templates/canteen/consumption/_create.html +19 -0
  26. fnschool-20251011.81638.854/src/fnschoo1/canteen/templates/canteen/consumption/create.html +456 -0
  27. fnschool-20251011.81638.854/src/fnschoo1/canteen/templates/canteen/ingredient/close.html +11 -0
  28. fnschool-20251011.81638.854/src/fnschoo1/canteen/templates/canteen/ingredient/create.html +19 -0
  29. fnschool-20251011.81638.854/src/fnschoo1/canteen/templates/canteen/ingredient/create_one.html +17 -0
  30. fnschool-20251011.81638.854/src/fnschoo1/canteen/templates/canteen/ingredient/delete.html +41 -0
  31. fnschool-20251011.81638.854/src/fnschoo1/canteen/templates/canteen/ingredient/list.html +128 -0
  32. fnschool-20251011.81638.854/src/fnschoo1/canteen/templates/canteen/ingredient/update.html +23 -0
  33. fnschool-20251011.81638.854/src/fnschoo1/canteen/templates/canteen/meal_type/create.html +17 -0
  34. fnschool-20251011.81638.854/src/fnschoo1/canteen/templates/canteen/meal_type/delete.html +56 -0
  35. fnschool-20251011.81638.854/src/fnschoo1/canteen/templates/canteen/meal_type/list.html +59 -0
  36. fnschool-20251011.81638.854/src/fnschoo1/canteen/templates/canteen/meal_type/update.html +23 -0
  37. fnschool-20251011.81638.854/src/fnschoo1/canteen/tests.py +3 -0
  38. fnschool-20251011.81638.854/src/fnschoo1/canteen/urls.py +116 -0
  39. fnschool-20251011.81638.854/src/fnschoo1/canteen/views.py +814 -0
  40. fnschool-20251011.81638.854/src/fnschoo1/canteen/workbook/generate.py +2098 -0
  41. fnschool-20251011.81638.854/src/fnschoo1/db.sqlite3 +0 -0
  42. fnschool-20251011.81638.854/src/fnschoo1/fnschool/__init__.py +13 -0
  43. fnschool-20251011.81638.854/src/fnschoo1/fnschool/asgi.py +16 -0
  44. fnschool-20251011.81638.854/src/fnschoo1/fnschool/settings.py +167 -0
  45. fnschool-20251011.81638.854/src/fnschoo1/fnschool/templatetags/fnschool_tags.py +27 -0
  46. fnschool-20251011.81638.854/src/fnschoo1/fnschool/urls.py +30 -0
  47. fnschool-20251011.81638.854/src/fnschoo1/fnschool/views.py +9 -0
  48. fnschool-20251011.81638.854/src/fnschoo1/fnschool/wsgi.py +16 -0
  49. fnschool-20251011.81638.854/src/fnschoo1/locale/en/LC_MESSAGES/django.mo +0 -0
  50. fnschool-20251011.81638.854/src/fnschoo1/locale/zh_Hans/LC_MESSAGES/django.mo +0 -0
  51. fnschool-20251011.81638.854/src/fnschoo1/manage.py +25 -0
  52. fnschool-20251011.81638.854/src/fnschoo1/profiles/admin.py +27 -0
  53. fnschool-20251011.81638.854/src/fnschoo1/profiles/apps.py +12 -0
  54. fnschool-20251011.81638.854/src/fnschoo1/profiles/forms.py +67 -0
  55. fnschool-20251011.81638.854/src/fnschoo1/profiles/migrations/0001_initial.py +192 -0
  56. fnschool-20251011.81638.854/src/fnschoo1/profiles/migrations/0002_alter_profile_bio.py +20 -0
  57. fnschool-20251011.81638.854/src/fnschoo1/profiles/migrations/0003_alter_profile_options_alter_profile_address_and_more.py +67 -0
  58. fnschool-20251011.81638.854/src/fnschoo1/profiles/migrations/0004_profile_gender.py +26 -0
  59. fnschool-20251011.81638.854/src/fnschoo1/profiles/migrations/0005_alter_profile_gender.py +23 -0
  60. fnschool-20251011.81638.854/src/fnschoo1/profiles/models.py +60 -0
  61. fnschool-20251011.81638.854/src/fnschoo1/profiles/signals.py +20 -0
  62. fnschool-20251011.81638.854/src/fnschoo1/profiles/templates/profiles/create.html +16 -0
  63. fnschool-20251011.81638.854/src/fnschoo1/profiles/templates/profiles/detail.html +14 -0
  64. fnschool-20251011.81638.854/src/fnschoo1/profiles/templates/profiles/edit.html +12 -0
  65. fnschool-20251011.81638.854/src/fnschoo1/profiles/templates/profiles/log_in.html +20 -0
  66. fnschool-20251011.81638.854/src/fnschoo1/profiles/templates/profiles/log_out.html +12 -0
  67. fnschool-20251011.81638.854/src/fnschoo1/profiles/tests.py +3 -0
  68. fnschool-20251011.81638.854/src/fnschoo1/profiles/urls.py +15 -0
  69. fnschool-20251011.81638.854/src/fnschoo1/profiles/views.py +63 -0
  70. fnschool-20251011.81638.854/src/fnschoo1/static/css/bootstrap.min.css +11776 -0
  71. fnschool-20251011.81638.854/src/fnschoo1/static/css/fnschool.css +26 -0
  72. fnschool-20251011.81638.854/src/fnschoo1/static/images/favicon.ico +0 -0
  73. fnschool-20251011.81638.854/src/fnschoo1/static/js/bootstrap.bundle.min.js +4223 -0
  74. fnschool-20251011.81638.854/src/fnschoo1/static/js/bootstrap.min.js +2919 -0
  75. fnschool-20251011.81638.854/src/fnschoo1/static/js/fnschool.js +84 -0
  76. fnschool-20251011.81638.854/src/fnschoo1/static/js/jquery.min.js +5413 -0
  77. fnschool-20251011.81638.854/src/fnschoo1/static/js/jquery.slim.min.js +4331 -0
  78. fnschool-20251011.81638.854/src/fnschoo1/static/js/popper.min.js +1306 -0
  79. fnschool-20251011.81638.854/src/fnschoo1/static_collected/admin/css/autocomplete.css +377 -0
  80. fnschool-20251011.81638.854/src/fnschoo1/static_collected/admin/css/base.css +1224 -0
  81. fnschool-20251011.81638.854/src/fnschoo1/static_collected/admin/css/changelists.css +334 -0
  82. fnschool-20251011.81638.854/src/fnschoo1/static_collected/admin/css/dark_mode.css +136 -0
  83. fnschool-20251011.81638.854/src/fnschoo1/static_collected/admin/css/dashboard.css +30 -0
  84. fnschool-20251011.81638.854/src/fnschoo1/static_collected/admin/css/forms.css +546 -0
  85. fnschool-20251011.81638.854/src/fnschoo1/static_collected/admin/css/login.css +62 -0
  86. fnschool-20251011.81638.854/src/fnschoo1/static_collected/admin/css/nav_sidebar.css +145 -0
  87. fnschool-20251011.81638.854/src/fnschoo1/static_collected/admin/css/responsive.css +1043 -0
  88. fnschool-20251011.81638.854/src/fnschoo1/static_collected/admin/css/responsive_rtl.css +84 -0
  89. fnschool-20251011.81638.854/src/fnschoo1/static_collected/admin/css/rtl.css +311 -0
  90. fnschool-20251011.81638.854/src/fnschoo1/static_collected/admin/css/vendor/select2/select2.css +708 -0
  91. fnschool-20251011.81638.854/src/fnschoo1/static_collected/admin/css/vendor/select2/select2.min.css +1 -0
  92. fnschool-20251011.81638.854/src/fnschoo1/static_collected/admin/css/widgets.css +639 -0
  93. fnschool-20251011.81638.854/src/fnschoo1/static_collected/admin/js/SelectBox.js +128 -0
  94. fnschool-20251011.81638.854/src/fnschoo1/static_collected/admin/js/SelectFilter2.js +503 -0
  95. fnschool-20251011.81638.854/src/fnschoo1/static_collected/admin/js/actions.js +232 -0
  96. fnschool-20251011.81638.854/src/fnschoo1/static_collected/admin/js/admin/DateTimeShortcuts.js +496 -0
  97. fnschool-20251011.81638.854/src/fnschoo1/static_collected/admin/js/admin/RelatedObjectLookups.js +276 -0
  98. fnschool-20251011.81638.854/src/fnschoo1/static_collected/admin/js/autocomplete.js +33 -0
  99. fnschool-20251011.81638.854/src/fnschoo1/static_collected/admin/js/calendar.js +251 -0
  100. fnschool-20251011.81638.854/src/fnschoo1/static_collected/admin/js/cancel.js +29 -0
  101. fnschool-20251011.81638.854/src/fnschoo1/static_collected/admin/js/change_form.js +21 -0
  102. fnschool-20251011.81638.854/src/fnschoo1/static_collected/admin/js/collapse.js +43 -0
  103. fnschool-20251011.81638.854/src/fnschoo1/static_collected/admin/js/core.js +174 -0
  104. fnschool-20251011.81638.854/src/fnschoo1/static_collected/admin/js/filters.js +37 -0
  105. fnschool-20251011.81638.854/src/fnschoo1/static_collected/admin/js/inlines.js +439 -0
  106. fnschool-20251011.81638.854/src/fnschoo1/static_collected/admin/js/jquery.init.js +8 -0
  107. fnschool-20251011.81638.854/src/fnschoo1/static_collected/admin/js/nav_sidebar.js +81 -0
  108. fnschool-20251011.81638.854/src/fnschoo1/static_collected/admin/js/popup_response.js +24 -0
  109. fnschool-20251011.81638.854/src/fnschoo1/static_collected/admin/js/prepopulate.js +43 -0
  110. fnschool-20251011.81638.854/src/fnschoo1/static_collected/admin/js/prepopulate_init.js +20 -0
  111. fnschool-20251011.81638.854/src/fnschoo1/static_collected/admin/js/theme.js +57 -0
  112. fnschool-20251011.81638.854/src/fnschoo1/static_collected/admin/js/urlify.js +529 -0
  113. fnschool-20251011.81638.854/src/fnschoo1/static_collected/admin/js/vendor/jquery/jquery.js +10913 -0
  114. fnschool-20251011.81638.854/src/fnschoo1/static_collected/admin/js/vendor/jquery/jquery.min.js +2 -0
  115. fnschool-20251011.81638.854/src/fnschoo1/static_collected/admin/js/vendor/select2/i18n/af.js +43 -0
  116. fnschool-20251011.81638.854/src/fnschoo1/static_collected/admin/js/vendor/select2/i18n/ar.js +36 -0
  117. fnschool-20251011.81638.854/src/fnschoo1/static_collected/admin/js/vendor/select2/i18n/az.js +33 -0
  118. fnschool-20251011.81638.854/src/fnschoo1/static_collected/admin/js/vendor/select2/i18n/bg.js +38 -0
  119. fnschool-20251011.81638.854/src/fnschoo1/static_collected/admin/js/vendor/select2/i18n/bn.js +39 -0
  120. fnschool-20251011.81638.854/src/fnschoo1/static_collected/admin/js/vendor/select2/i18n/bs.js +48 -0
  121. fnschool-20251011.81638.854/src/fnschoo1/static_collected/admin/js/vendor/select2/i18n/ca.js +41 -0
  122. fnschool-20251011.81638.854/src/fnschoo1/static_collected/admin/js/vendor/select2/i18n/cs.js +62 -0
  123. fnschool-20251011.81638.854/src/fnschoo1/static_collected/admin/js/vendor/select2/i18n/da.js +37 -0
  124. fnschool-20251011.81638.854/src/fnschoo1/static_collected/admin/js/vendor/select2/i18n/de.js +41 -0
  125. fnschool-20251011.81638.854/src/fnschoo1/static_collected/admin/js/vendor/select2/i18n/dsb.js +51 -0
  126. fnschool-20251011.81638.854/src/fnschoo1/static_collected/admin/js/vendor/select2/i18n/el.js +43 -0
  127. fnschool-20251011.81638.854/src/fnschoo1/static_collected/admin/js/vendor/select2/i18n/en.js +41 -0
  128. fnschool-20251011.81638.854/src/fnschoo1/static_collected/admin/js/vendor/select2/i18n/es.js +41 -0
  129. fnschool-20251011.81638.854/src/fnschoo1/static_collected/admin/js/vendor/select2/i18n/et.js +38 -0
  130. fnschool-20251011.81638.854/src/fnschoo1/static_collected/admin/js/vendor/select2/i18n/eu.js +45 -0
  131. fnschool-20251011.81638.854/src/fnschoo1/static_collected/admin/js/vendor/select2/i18n/fa.js +42 -0
  132. fnschool-20251011.81638.854/src/fnschoo1/static_collected/admin/js/vendor/select2/i18n/fi.js +42 -0
  133. fnschool-20251011.81638.854/src/fnschoo1/static_collected/admin/js/vendor/select2/i18n/fr.js +43 -0
  134. fnschool-20251011.81638.854/src/fnschoo1/static_collected/admin/js/vendor/select2/i18n/gl.js +40 -0
  135. fnschool-20251011.81638.854/src/fnschoo1/static_collected/admin/js/vendor/select2/i18n/he.js +44 -0
  136. fnschool-20251011.81638.854/src/fnschoo1/static_collected/admin/js/vendor/select2/i18n/hi.js +40 -0
  137. fnschool-20251011.81638.854/src/fnschoo1/static_collected/admin/js/vendor/select2/i18n/hr.js +45 -0
  138. fnschool-20251011.81638.854/src/fnschoo1/static_collected/admin/js/vendor/select2/i18n/hsb.js +51 -0
  139. fnschool-20251011.81638.854/src/fnschoo1/static_collected/admin/js/vendor/select2/i18n/hu.js +44 -0
  140. fnschool-20251011.81638.854/src/fnschoo1/static_collected/admin/js/vendor/select2/i18n/hy.js +40 -0
  141. fnschool-20251011.81638.854/src/fnschoo1/static_collected/admin/js/vendor/select2/i18n/id.js +36 -0
  142. fnschool-20251011.81638.854/src/fnschoo1/static_collected/admin/js/vendor/select2/i18n/is.js +37 -0
  143. fnschool-20251011.81638.854/src/fnschoo1/static_collected/admin/js/vendor/select2/i18n/it.js +43 -0
  144. fnschool-20251011.81638.854/src/fnschoo1/static_collected/admin/js/vendor/select2/i18n/ja.js +40 -0
  145. fnschool-20251011.81638.854/src/fnschoo1/static_collected/admin/js/vendor/select2/i18n/ka.js +42 -0
  146. fnschool-20251011.81638.854/src/fnschoo1/static_collected/admin/js/vendor/select2/i18n/km.js +38 -0
  147. fnschool-20251011.81638.854/src/fnschoo1/static_collected/admin/js/vendor/select2/i18n/ko.js +42 -0
  148. fnschool-20251011.81638.854/src/fnschoo1/static_collected/admin/js/vendor/select2/i18n/lt.js +45 -0
  149. fnschool-20251011.81638.854/src/fnschoo1/static_collected/admin/js/vendor/select2/i18n/lv.js +41 -0
  150. fnschool-20251011.81638.854/src/fnschoo1/static_collected/admin/js/vendor/select2/i18n/mk.js +42 -0
  151. fnschool-20251011.81638.854/src/fnschoo1/static_collected/admin/js/vendor/select2/i18n/ms.js +38 -0
  152. fnschool-20251011.81638.854/src/fnschoo1/static_collected/admin/js/vendor/select2/i18n/nb.js +38 -0
  153. fnschool-20251011.81638.854/src/fnschoo1/static_collected/admin/js/vendor/select2/i18n/ne.js +44 -0
  154. fnschool-20251011.81638.854/src/fnschoo1/static_collected/admin/js/vendor/select2/i18n/nl.js +46 -0
  155. fnschool-20251011.81638.854/src/fnschoo1/static_collected/admin/js/vendor/select2/i18n/pl.js +43 -0
  156. fnschool-20251011.81638.854/src/fnschoo1/static_collected/admin/js/vendor/select2/i18n/ps.js +41 -0
  157. fnschool-20251011.81638.854/src/fnschoo1/static_collected/admin/js/vendor/select2/i18n/pt-BR.js +39 -0
  158. fnschool-20251011.81638.854/src/fnschoo1/static_collected/admin/js/vendor/select2/i18n/pt.js +41 -0
  159. fnschool-20251011.81638.854/src/fnschoo1/static_collected/admin/js/vendor/select2/i18n/ro.js +43 -0
  160. fnschool-20251011.81638.854/src/fnschoo1/static_collected/admin/js/vendor/select2/i18n/ru.js +48 -0
  161. fnschool-20251011.81638.854/src/fnschoo1/static_collected/admin/js/vendor/select2/i18n/sk.js +61 -0
  162. fnschool-20251011.81638.854/src/fnschoo1/static_collected/admin/js/vendor/select2/i18n/sl.js +41 -0
  163. fnschool-20251011.81638.854/src/fnschoo1/static_collected/admin/js/vendor/select2/i18n/sq.js +43 -0
  164. fnschool-20251011.81638.854/src/fnschoo1/static_collected/admin/js/vendor/select2/i18n/sr-Cyrl.js +48 -0
  165. fnschool-20251011.81638.854/src/fnschoo1/static_collected/admin/js/vendor/select2/i18n/sr.js +48 -0
  166. fnschool-20251011.81638.854/src/fnschoo1/static_collected/admin/js/vendor/select2/i18n/sv.js +40 -0
  167. fnschool-20251011.81638.854/src/fnschoo1/static_collected/admin/js/vendor/select2/i18n/th.js +36 -0
  168. fnschool-20251011.81638.854/src/fnschoo1/static_collected/admin/js/vendor/select2/i18n/tk.js +36 -0
  169. fnschool-20251011.81638.854/src/fnschoo1/static_collected/admin/js/vendor/select2/i18n/tr.js +40 -0
  170. fnschool-20251011.81638.854/src/fnschoo1/static_collected/admin/js/vendor/select2/i18n/uk.js +59 -0
  171. fnschool-20251011.81638.854/src/fnschoo1/static_collected/admin/js/vendor/select2/i18n/vi.js +37 -0
  172. fnschool-20251011.81638.854/src/fnschoo1/static_collected/admin/js/vendor/select2/i18n/zh-CN.js +36 -0
  173. fnschool-20251011.81638.854/src/fnschoo1/static_collected/admin/js/vendor/select2/i18n/zh-TW.js +33 -0
  174. fnschool-20251011.81638.854/src/fnschoo1/static_collected/admin/js/vendor/select2/select2.full.js +7115 -0
  175. fnschool-20251011.81638.854/src/fnschoo1/static_collected/admin/js/vendor/select2/select2.full.min.js +2 -0
  176. fnschool-20251011.81638.854/src/fnschoo1/static_collected/admin/js/vendor/xregexp/xregexp.js +4993 -0
  177. fnschool-20251011.81638.854/src/fnschoo1/static_collected/admin/js/vendor/xregexp/xregexp.min.js +160 -0
  178. fnschool-20251011.81638.854/src/fnschoo1/static_collected/css/bootstrap.min.css +11776 -0
  179. fnschool-20251011.81638.854/src/fnschoo1/static_collected/css/fnschool.css +26 -0
  180. fnschool-20251011.81638.854/src/fnschoo1/static_collected/images/favicon.ico +0 -0
  181. fnschool-20251011.81638.854/src/fnschoo1/static_collected/js/bootstrap.bundle.min.js +4223 -0
  182. fnschool-20251011.81638.854/src/fnschoo1/static_collected/js/bootstrap.min.js +2919 -0
  183. fnschool-20251011.81638.854/src/fnschoo1/static_collected/js/fnschool.js +84 -0
  184. fnschool-20251011.81638.854/src/fnschoo1/static_collected/js/jquery.min.js +5413 -0
  185. fnschool-20251011.81638.854/src/fnschoo1/static_collected/js/jquery.slim.min.js +4331 -0
  186. fnschool-20251011.81638.854/src/fnschoo1/static_collected/js/popper.min.js +1306 -0
  187. fnschool-20251011.81638.854/src/fnschoo1/templates/base/_css.html +1 -0
  188. fnschool-20251011.81638.854/src/fnschoo1/templates/base/_js.html +15 -0
  189. fnschool-20251011.81638.854/src/fnschoo1/templates/base/content.html +30 -0
  190. fnschool-20251011.81638.854/src/fnschoo1/templates/base/header_content_footer.html +35 -0
  191. fnschool-20251011.81638.854/src/fnschoo1/templates/close.html +11 -0
  192. fnschool-20251011.81638.854/src/fnschoo1/templates/home.html +51 -0
  193. fnschool-20251011.81638.854/src/fnschoo1/templates/includes/_footer.html +39 -0
  194. fnschool-20251011.81638.854/src/fnschoo1/templates/includes/_header.html +77 -0
  195. fnschool-20251011.81638.854/src/fnschoo1/templates/includes/_navigation.html +0 -0
  196. fnschool-20251011.81638.854/src/fnschoo1/templates/includes/_paginator.html +27 -0
  197. fnschool-20251011.81638.854/src/fnschoo1/templates/registration/logged_out.html +0 -0
  198. fnschool-20251011.81638.854/src/fnschoo1/templates/registration/login.html +0 -0
  199. fnschool-20251011.81638.854/src/fnschool.egg-info/PKG-INFO +179 -0
  200. fnschool-20251011.81638.854/src/fnschool.egg-info/SOURCES.txt +212 -0
  201. fnschool-20251011.81638.854/src/fnschool.egg-info/entry_points.txt +2 -0
  202. fnschool-20251011.81638.854/src/fnschool.egg-info/requires.txt +13 -0
  203. fnschool-20251011.81638.854/src/fnschool.egg-info/top_level.txt +1 -0
  204. fnschool-20250109.80531.837/PKG-INFO +0 -342
  205. fnschool-20250109.80531.837/src/fnschool/__init__.py +0 -35
  206. fnschool-20250109.80531.837/src/fnschool/__main__.py +0 -16
  207. fnschool-20250109.80531.837/src/fnschool/app.py +0 -103
  208. fnschool-20250109.80531.837/src/fnschool/canteen/__init__.py +0 -3
  209. fnschool-20250109.80531.837/src/fnschool/canteen/__main__.py +0 -3
  210. fnschool-20250109.80531.837/src/fnschool/canteen/bill.py +0 -253
  211. fnschool-20250109.80531.837/src/fnschool/canteen/canteen.py +0 -1
  212. fnschool-20250109.80531.837/src/fnschool/canteen/canteen.toml +0 -61
  213. fnschool-20250109.80531.837/src/fnschool/canteen/config.py +0 -10
  214. fnschool-20250109.80531.837/src/fnschool/canteen/consuming.py +0 -53
  215. fnschool-20250109.80531.837/src/fnschool/canteen/currency.py +0 -17
  216. fnschool-20250109.80531.837/src/fnschool/canteen/data/bill.i18n.xlsx +0 -0
  217. fnschool-20250109.80531.837/src/fnschool/canteen/data/bill.xlsx +0 -0
  218. fnschool-20250109.80531.837/src/fnschool/canteen/data/consuming.xlsx +0 -0
  219. fnschool-20250109.80531.837/src/fnschool/canteen/data/purchase_list.xlsx +0 -0
  220. fnschool-20250109.80531.837/src/fnschool/canteen/entry.py +0 -40
  221. fnschool-20250109.80531.837/src/fnschool/canteen/food.py +0 -206
  222. fnschool-20250109.80531.837/src/fnschool/canteen/food_classes.py +0 -33
  223. fnschool-20250109.80531.837/src/fnschool/canteen/food_classes.toml +0 -64
  224. fnschool-20250109.80531.837/src/fnschool/canteen/operator.py +0 -91
  225. fnschool-20250109.80531.837/src/fnschool/canteen/path.py +0 -28
  226. fnschool-20250109.80531.837/src/fnschool/canteen/spreadsheet/base.py +0 -213
  227. fnschool-20250109.80531.837/src/fnschool/canteen/spreadsheet/consuming.py +0 -310
  228. fnschool-20250109.80531.837/src/fnschool/canteen/spreadsheet/consumingsum.py +0 -76
  229. fnschool-20250109.80531.837/src/fnschool/canteen/spreadsheet/cover.py +0 -64
  230. fnschool-20250109.80531.837/src/fnschool/canteen/spreadsheet/ctspreadsheet.py +0 -351
  231. fnschool-20250109.80531.837/src/fnschool/canteen/spreadsheet/food.py +0 -680
  232. fnschool-20250109.80531.837/src/fnschool/canteen/spreadsheet/inventory.py +0 -375
  233. fnschool-20250109.80531.837/src/fnschool/canteen/spreadsheet/merging.py +0 -340
  234. fnschool-20250109.80531.837/src/fnschool/canteen/spreadsheet/preconsuming.py +0 -329
  235. fnschool-20250109.80531.837/src/fnschool/canteen/spreadsheet/purchasing.py +0 -885
  236. fnschool-20250109.80531.837/src/fnschool/canteen/spreadsheet/purchasingsum.py +0 -110
  237. fnschool-20250109.80531.837/src/fnschool/canteen/spreadsheet/spreadsheet.py +0 -363
  238. fnschool-20250109.80531.837/src/fnschool/canteen/spreadsheet/translating.py +0 -12
  239. fnschool-20250109.80531.837/src/fnschool/canteen/spreadsheet/unwarehousing.py +0 -178
  240. fnschool-20250109.80531.837/src/fnschool/canteen/spreadsheet/unwarehousingsum.py +0 -11
  241. fnschool-20250109.80531.837/src/fnschool/canteen/spreadsheet/warehousing.py +0 -360
  242. fnschool-20250109.80531.837/src/fnschool/canteen/spreadsheet/workbook.py +0 -17
  243. fnschool-20250109.80531.837/src/fnschool/canteen/test.py +0 -97
  244. fnschool-20250109.80531.837/src/fnschool/config.py +0 -48
  245. fnschool-20250109.80531.837/src/fnschool/entry.py +0 -67
  246. fnschool-20250109.80531.837/src/fnschool/exam/__init__.py +0 -8
  247. fnschool-20250109.80531.837/src/fnschool/exam/data/parental_emails.xlsx +0 -0
  248. fnschool-20250109.80531.837/src/fnschool/exam/data/score.xlsx +0 -0
  249. fnschool-20250109.80531.837/src/fnschool/exam/email.py +0 -349
  250. fnschool-20250109.80531.837/src/fnschool/exam/entry.py +0 -36
  251. fnschool-20250109.80531.837/src/fnschool/exam/language.py +0 -19
  252. fnschool-20250109.80531.837/src/fnschool/exam/path.py +0 -24
  253. fnschool-20250109.80531.837/src/fnschool/exam/score.py +0 -1191
  254. fnschool-20250109.80531.837/src/fnschool/exam/subject.py +0 -20
  255. fnschool-20250109.80531.837/src/fnschool/exam/teacher.py +0 -54
  256. fnschool-20250109.80531.837/src/fnschool/external.py +0 -89
  257. fnschool-20250109.80531.837/src/fnschool/games/__init__.py +0 -1
  258. fnschool-20250109.80531.837/src/fnschool/games/__main__.py +0 -1
  259. fnschool-20250109.80531.837/src/fnschool/games/games.py +0 -1
  260. fnschool-20250109.80531.837/src/fnschool/inoutput.py +0 -97
  261. fnschool-20250109.80531.837/src/fnschool/language.py +0 -40
  262. fnschool-20250109.80531.837/src/fnschool/locales/en_US/LC_MESSAGES/fnschool.mo +0 -0
  263. fnschool-20250109.80531.837/src/fnschool/locales/zh_CN/LC_MESSAGES/fnschool.mo +0 -0
  264. fnschool-20250109.80531.837/src/fnschool/locales/zh_HK/LC_MESSAGES/fnschool.mo +0 -0
  265. fnschool-20250109.80531.837/src/fnschool/locales/zh_SG/LC_MESSAGES/fnschool.mo +0 -0
  266. fnschool-20250109.80531.837/src/fnschool/locales/zh_TW/LC_MESSAGES/fnschool.mo +0 -0
  267. fnschool-20250109.80531.837/src/fnschool/path.py +0 -45
  268. fnschool-20250109.80531.837/src/fnschool/test.py +0 -24
  269. fnschool-20250109.80531.837/src/fnschool/user.py +0 -262
  270. fnschool-20250109.80531.837/src/fnschool.egg-info/PKG-INFO +0 -342
  271. fnschool-20250109.80531.837/src/fnschool.egg-info/SOURCES.txt +0 -81
  272. fnschool-20250109.80531.837/src/fnschool.egg-info/entry_points.txt +0 -5
  273. fnschool-20250109.80531.837/src/fnschool.egg-info/requires.txt +0 -11
  274. fnschool-20250109.80531.837/src/fnschool.egg-info/top_level.txt +0 -1
  275. {fnschool-20250109.80531.837 → fnschool-20251011.81638.854}/LICENSE +0 -0
  276. {fnschool-20250109.80531.837 → fnschool-20251011.81638.854}/README.md +0 -0
  277. {fnschool-20250109.80531.837 → fnschool-20251011.81638.854}/setup.cfg +0 -0
  278. /fnschool-20250109.80531.837/src/fnschool/canteen/consume.py → /fnschool-20251011.81638.854/src/fnschoo1/canteen/__init__.py +0 -0
  279. /fnschool-20250109.80531.837/src/fnschool/canteen/food_recount.toml → /fnschool-20251011.81638.854/src/fnschoo1/canteen/migrations/__init__.py +0 -0
  280. {fnschool-20250109.80531.837/src/fnschool/canteen/spreadsheet → fnschool-20251011.81638.854/src/fnschoo1/canteen/workbook}/__init__.py +0 -0
  281. /fnschool-20250109.80531.837/src/fnschool.egg-info/dependency_links.txt → /fnschool-20251011.81638.854/src/fnschoo1/fnschool/templatetags/__init__.py +0 -0
  282. /fnschool-20250109.80531.837/src/fnschool/canteen/food_recounts.toml → /fnschool-20251011.81638.854/src/fnschoo1/profiles/__init__.py +0 -0
  283. /fnschool-20250109.80531.837/src/fnschool/canteen/warehouse.py → /fnschool-20251011.81638.854/src/fnschoo1/profiles/migrations/__init__.py +0 -0
  284. /fnschool-20250109.80531.837/src/fnschool/canteen/workbook.toml → /fnschool-20251011.81638.854/src/fnschoo1/templates/base/_content.html +0 -0
  285. /fnschool-20250109.80531.837/src/fnschool/exam/__main__.py → /fnschool-20251011.81638.854/src/fnschool.egg-info/dependency_links.txt +0 -0
@@ -0,0 +1,179 @@
1
+ Metadata-Version: 2.4
2
+ Name: fnschool
3
+ Version: 20251011.81638.854
4
+ Summary: Just some school related scripts, without any ambition.
5
+ Author-email: larryw3i <larryw3i@163.com>, Larry Wei <larryw3i@126.com>, Larry W3i <larryw3i@yeah.net>
6
+ Maintainer-email: larryw3i <larryw3i@163.com>, Larry Wei <larryw3i@126.com>
7
+ Project-URL: Homepage, https://github.com/larryw3i/funingschool
8
+ Project-URL: Documentation, https://github.com/larryw3i/funingschool/docs
9
+ Project-URL: Repository, https://github.com/larryw3i/funingschool.git
10
+ Project-URL: Issues, https://github.com/larryw3i/funingschool/issues
11
+ Project-URL: Changelog, https://github.com/larryw3i/funingschool/CHANGELOG.md
12
+ Classifier: Topic :: Education
13
+ Classifier: Programming Language :: Python :: 3.10
14
+ Requires-Python: >=3.9
15
+ Description-Content-Type: text/markdown
16
+ License-File: LICENSE
17
+ Requires-Dist: django
18
+ Requires-Dist: pandas
19
+ Requires-Dist: matplotlib
20
+ Requires-Dist: numpy
21
+ Requires-Dist: openpyxl
22
+ Requires-Dist: platformdirs
23
+ Requires-Dist: tomlkit
24
+ Requires-Dist: django-crispy-forms
25
+ Requires-Dist: crispy-bootstrap5
26
+ Provides-Extra: gui
27
+ Provides-Extra: cli
28
+ Dynamic: license-file
29
+
30
+
31
+ <hr/>
32
+ <div align="center">
33
+ <pre>
34
+ _____ _ _ ____ ____ _ _ ___ ___ _
35
+ | ___| \ | / ___| / ___| | | |/ _ \ / _ \| |
36
+ | |_ | \| \___ \| | | |_| | | | | | | | |
37
+ | _| | |\ |___) | |___| _ | |_| | |_| | |___
38
+ |_| |_| \_|____/ \____|_| |_|\___/ \___/|_____|
39
+ </pre>
40
+ </div>
41
+ <p align="center">
42
+ funingschool
43
+ </p>
44
+ <h4 align="center">
45
+ NO Just some simple scripts for warehousing and consuming.
46
+ </h4>
47
+ <hr/>
48
+ <p align="center">
49
+ <a href="https://gitee.com/larryw3i/funingschool/blob/master/Documentation/README/zh_CN.md">简体中文</a> •
50
+ <a href="https://github.com/larryw3i/funingschool/blob/master/README.md">English</a>
51
+ </p>
52
+
53
+ <p align="center">
54
+ <a href="#key-features">
55
+ Key Features
56
+ </a>
57
+
58
+ <a href="#how-to-use">
59
+ How To Use
60
+ </a>
61
+
62
+ <a href="#credits">
63
+ Credits
64
+ </a>
65
+
66
+ <a href="#support">
67
+ Support
68
+ </a>
69
+
70
+ <a href="#license">
71
+ License
72
+ </a>
73
+ </p>
74
+
75
+ ![Screenshot](https://raw.githubusercontent.com/larryw3i/funingschool/master/Documentation/images/9432e132-f8cd-11ee-8ee6-f37309efa64b.png)
76
+
77
+ <h2 id="key-features">
78
+ Key Features
79
+ </h2>
80
+
81
+ <h3>
82
+ warehousing and consuming
83
+ </h3>
84
+
85
+ * Read food spreadsheets automatically.
86
+ * The simplest and most straightforward `consuming sheets`.
87
+ * Update sheets (warehousing, consuming, summing, etc) automatically.
88
+ * Reduce calculation errors.
89
+ * Effectively eliminate unit prices containing infinite decimals.
90
+ * Merge food sheets between spreadsheets.
91
+ * Easy to use.
92
+
93
+ <h3>
94
+ Test statistics
95
+ </h3>
96
+
97
+ * An easy-to-use "test score entry form".
98
+ * Clear test results at a glance, converting table data into Intuitive images.
99
+ * Display comments.
100
+ * Effectively assist testers, especially teachers and students.
101
+
102
+ <h2 id="how-to-use">
103
+ How To Use
104
+ </h2>
105
+
106
+ <h3>
107
+ Install Python3
108
+ </h3>
109
+ <p>
110
+
111
+ on `Ubuntu`:
112
+
113
+ ```bash
114
+ sudo apt-get install python3 python3-pip python3-tk
115
+ ```
116
+ For `Windows 10` and `Windows 11`, you can install Python3 from https://www.python.org/getit/ . (`fnschool` requires Python 3.12 or later)
117
+ </p>
118
+
119
+ <h3>
120
+ Install fnschool and run it
121
+ </h3>
122
+
123
+ <p>
124
+
125
+ Run the command line application:
126
+ * `Ubuntu`: `Ctrl+Alt+T`.
127
+ * `Windows`: "`Win+R, powershell, Enter`".
128
+
129
+ Enter the following commands:
130
+
131
+ </p>
132
+
133
+ ```bash
134
+ # install fnschool.
135
+ pip install -U fnschool
136
+
137
+ # Making bill of "canteen" module.
138
+ fnschool-cli canteen mk_bill
139
+ # Merging food sheets of "canteen" module.
140
+ fnschool-cli canteen merge_foodsheets
141
+
142
+ # run `test statistics` module.
143
+ fnschool-cli exam enter
144
+ ```
145
+
146
+ >Note: Read the information it prompts carefully, which is the key to using it well.
147
+
148
+ <h2 id="credits">
149
+ Credits
150
+ </h2>
151
+ <p>
152
+ This software uses the following open source packages:
153
+ <ul>
154
+ <li><a href="https://github.com/tartley/colorama">colorama</a></li>
155
+ <li><a href="https://pandas.pydata.org/">pandas</a></li>
156
+ <li><a href="https://numpy.org/">numpy</a></li>
157
+ <li><a href="https://openpyxl.readthedocs.io/">openpyxl</a></li>
158
+ <li><a href="http://github.com/ActiveState/appdirs">appdirs</a></li>
159
+ <li><a href="https://matplotlib.org/">matplotlib</a></li>
160
+ <li><a href="https://github.com/Miksus/red-mail">redmail</a></li>
161
+ </ul>
162
+ </p>
163
+
164
+ <h2 id="support">
165
+ Support
166
+ </h2>
167
+ <h3>
168
+ Buy me a `coffee`:
169
+ </h3>
170
+
171
+ ![Buy me a "coffee".](https://raw.githubusercontent.com/larryw3i/funingschool/master/Documentation/images/9237879a-f8d5-11ee-8411-23057db0a773.jpeg)
172
+
173
+ <h2 id="license">
174
+ License
175
+ </h2>
176
+
177
+ <a href="https://github.com/larryw3i/funingschool/blob/master/LICENSE">
178
+ GNU LESSER GENERAL PUBLIC LICENSE Version 3
179
+ </a>
@@ -1,15 +1,18 @@
1
1
  [project]
2
2
  name = "fnschool"
3
3
  dynamic = ["version"]
4
+ license-files = ["LICENSE"]
4
5
  requires-python = ">= 3.9"
5
6
  dependencies = [
6
- "colorama",
7
+ "django",
7
8
  "pandas",
8
9
  "matplotlib",
9
10
  "numpy",
10
11
  "openpyxl",
11
- "appdirs",
12
- "redmail",
12
+ "platformdirs",
13
+ "tomlkit",
14
+ "django-crispy-forms",
15
+ "crispy-bootstrap5",
13
16
  ]
14
17
  authors = [
15
18
  {name = "larryw3i", email = "larryw3i@163.com"},
@@ -22,7 +25,6 @@ maintainers = [
22
25
  ]
23
26
  description = "Just some school related scripts, without any ambition."
24
27
  readme = "README.md"
25
- license = {file = "LICENSE"}
26
28
  classifiers = [
27
29
  "Topic :: Education",
28
30
  "Programming Language :: Python :: 3.10",
@@ -39,10 +41,7 @@ gui=[]
39
41
  cli=[]
40
42
 
41
43
  [project.scripts]
42
- fnschool-cli = "fnschool:read_cli"
43
-
44
- [project.gui-scripts]
45
- fnschool-gui = "fnschool:show_gui"
44
+ fnschool-cli = "fnschoo1:main"
46
45
 
47
46
  [build-system]
48
47
  requires = [
@@ -53,15 +52,18 @@ requires = [
53
52
  line-length = 80
54
53
 
55
54
  [tool.setuptools.dynamic]
56
- version = {attr = "fnschool.__version__"}
55
+ version = {attr = "fnschoo1.__version__"}
57
56
 
58
57
  [tool.setuptools.packages.find]
59
58
  where = ["src"]
60
59
 
61
60
  [tool.setuptools.package-data]
62
- "*" = ["*.mo","*.xlsx","*.toml"]
61
+ "*" = ["*.mo","*.xlsx","*.toml","*.html","*.js", "*.css", "db.sqlite3", "*.ico"]
63
62
 
64
63
  [tool.setuptools.exclude-package-data]
65
64
  "*" = ["*.po"]
66
65
 
66
+ [tool.djlint]
67
+ profile="django"
68
+
67
69
  # The end.
@@ -0,0 +1,53 @@
1
+ #!/usr/bin/env python3
2
+ """Django's command-line utility for administrative tasks."""
3
+ import os
4
+ import platform
5
+ import random
6
+ import sys
7
+ from pathlib import Path
8
+
9
+ __version__ = "20251011.81638.854"
10
+
11
+ FNSCHOOL_PATH = Path(__file__).parent
12
+ if FNSCHOOL_PATH.as_posix() not in sys.path:
13
+ sys.path.insert(0, FNSCHOOL_PATH.as_posix())
14
+
15
+ system_name = platform.system()
16
+ is_linux = False
17
+ is_windows = False
18
+ is_macos = False
19
+
20
+ if system_name == "Linux":
21
+ is_linux = True
22
+ elif system_name == "Windows":
23
+ is_windows = True
24
+ elif system_name == "Darwin":
25
+ is_macos = True
26
+
27
+
28
+ def main():
29
+ """Run administrative tasks."""
30
+ os.environ.setdefault("DJANGO_SETTINGS_MODULE", "fnschool.settings")
31
+ try:
32
+ from django.core.management import execute_from_command_line
33
+ except ImportError as exc:
34
+ raise ImportError(
35
+ "Couldn't import Django. Are you sure it's installed and "
36
+ "available on your PYTHONPATH environment variable? Did you "
37
+ "forget to activate a virtual environment?"
38
+ ) from exc
39
+
40
+ if not "runserver" in sys.argv:
41
+ local_port = str(random.randint(8080, 65530))
42
+ local_url = "http://127.0.0.1:" + local_port
43
+ sys.argv.append("runserver")
44
+ sys.argv.append(str(local_port))
45
+ try:
46
+ if is_windows:
47
+ os.startfile(local_url)
48
+ else:
49
+ os.system("open " + local_url)
50
+ except Exception as e:
51
+ print(e)
52
+
53
+ execute_from_command_line(sys.argv)
@@ -0,0 +1,3 @@
1
+ from django.contrib import admin
2
+
3
+ # Register your models here.
@@ -0,0 +1,6 @@
1
+ from django.apps import AppConfig
2
+
3
+
4
+ class CanteenConfig(AppConfig):
5
+ default_auto_field = "django.db.models.BigAutoField"
6
+ name = "canteen"
@@ -0,0 +1,84 @@
1
+ from datetime import date, datetime
2
+
3
+ from django import forms
4
+ from fnschool import _
5
+
6
+ from .models import Category, Consumption, Ingredient, MealType
7
+
8
+
9
+ class PurchasedIngredientsWorkBookForm(forms.Form):
10
+ workbook_file = forms.FileField(
11
+ label=_("Select a Spreadsheet File"),
12
+ help_text=_("Office Open XML Spreadsheet only. (*.xlsx)"),
13
+ widget=forms.ClearableFileInput(attrs={"accept": ".xlsx"}),
14
+ )
15
+
16
+
17
+ class IngredientForm(forms.ModelForm):
18
+ class Meta:
19
+ model = Ingredient
20
+ fields = [
21
+ f.name
22
+ for f in Ingredient._meta.fields
23
+ if f.name not in ["id", "user"]
24
+ ]
25
+
26
+ current_year = date.today().year
27
+ year_range = list(range(current_year - 100, current_year + 1))
28
+ widgets = {
29
+ "storage_date": forms.SelectDateWidget(
30
+ years=year_range,
31
+ attrs={
32
+ "style": "width: 33.33%; display: inline-block;",
33
+ },
34
+ ),
35
+ }
36
+
37
+
38
+ class ConsumptionForm(forms.ModelForm):
39
+
40
+ def __init__(self, *args, **kwargs):
41
+ super().__init__(*args, **kwargs)
42
+ for name in self.fields:
43
+ self.fields[name].label = ""
44
+ self.fields[name].widget.attrs.update(
45
+ {
46
+ "id": f"id_{name}_{self.instance.ingredient.id}",
47
+ "class": "form-control",
48
+ }
49
+ )
50
+ self.fields[name].disabled = self.instance.is_disabled
51
+
52
+ class Meta:
53
+ model = Consumption
54
+ fields = "__all__"
55
+ widgets = {
56
+ "amount_used": forms.NumberInput(
57
+ attrs={
58
+ "style": "width: 109px; text-align: center; font-family: Mono;"
59
+ }
60
+ ),
61
+ "date_of_using": forms.HiddenInput(),
62
+ "ingredient": forms.HiddenInput(),
63
+ "is_disabled": forms.HiddenInput(),
64
+ }
65
+
66
+
67
+ class CategoryForm(forms.ModelForm):
68
+ class Meta:
69
+ model = Category
70
+ fields = [
71
+ "name",
72
+ "abbreviation",
73
+ "pin_to_consumptions_top",
74
+ "is_disabled",
75
+ ]
76
+
77
+
78
+ class MealTypeForm(forms.ModelForm):
79
+ class Meta:
80
+ model = MealType
81
+ fields = ["name", "abbreviation", "is_disabled"]
82
+
83
+
84
+ # The end.
@@ -0,0 +1,119 @@
1
+ # Generated by Django 4.2.24 on 2025-09-25 19:43
2
+
3
+ import django.db.models.deletion
4
+ from django.conf import settings
5
+ from django.db import migrations, models
6
+
7
+
8
+ class Migration(migrations.Migration):
9
+
10
+ initial = True
11
+
12
+ dependencies = [
13
+ migrations.swappable_dependency(settings.AUTH_USER_MODEL),
14
+ ]
15
+
16
+ operations = [
17
+ migrations.CreateModel(
18
+ name="Ingredient",
19
+ fields=[
20
+ (
21
+ "id",
22
+ models.BigAutoField(
23
+ auto_created=True,
24
+ primary_key=True,
25
+ serialize=False,
26
+ verbose_name="ID",
27
+ ),
28
+ ),
29
+ ("storage_date", models.DateField(verbose_name="入库日期")),
30
+ (
31
+ "name",
32
+ models.CharField(max_length=100, verbose_name="食材名"),
33
+ ),
34
+ (
35
+ "meal_type",
36
+ models.CharField(max_length=50, verbose_name="餐类"),
37
+ ),
38
+ (
39
+ "category",
40
+ models.CharField(max_length=50, verbose_name="食材大类"),
41
+ ),
42
+ (
43
+ "quantity",
44
+ models.DecimalField(
45
+ decimal_places=2, max_digits=10, verbose_name="数量"
46
+ ),
47
+ ),
48
+ (
49
+ "total_price",
50
+ models.DecimalField(
51
+ decimal_places=2, max_digits=10, verbose_name="总价"
52
+ ),
53
+ ),
54
+ (
55
+ "quantity_unit_name",
56
+ models.CharField(
57
+ blank=True,
58
+ max_length=20,
59
+ null=True,
60
+ verbose_name="数量单位",
61
+ ),
62
+ ),
63
+ (
64
+ "is_ignorable",
65
+ models.BooleanField(
66
+ default=False, verbose_name="是不用入库的"
67
+ ),
68
+ ),
69
+ (
70
+ "user",
71
+ models.ForeignKey(
72
+ on_delete=django.db.models.deletion.CASCADE,
73
+ related_name="ingredients",
74
+ to=settings.AUTH_USER_MODEL,
75
+ verbose_name="用户",
76
+ ),
77
+ ),
78
+ ],
79
+ options={
80
+ "verbose_name": "Ingredient",
81
+ "verbose_name_plural": "食材列表",
82
+ },
83
+ ),
84
+ migrations.CreateModel(
85
+ name="Consumption",
86
+ fields=[
87
+ (
88
+ "id",
89
+ models.BigAutoField(
90
+ auto_created=True,
91
+ primary_key=True,
92
+ serialize=False,
93
+ verbose_name="ID",
94
+ ),
95
+ ),
96
+ ("date_of_using", models.DateField(verbose_name="日期")),
97
+ (
98
+ "amount_used",
99
+ models.DecimalField(
100
+ decimal_places=2, max_digits=10, verbose_name="消耗数量"
101
+ ),
102
+ ),
103
+ (
104
+ "ingredient",
105
+ models.ForeignKey(
106
+ on_delete=django.db.models.deletion.CASCADE,
107
+ related_name="consumptions",
108
+ to="canteen.ingredient",
109
+ verbose_name="食材",
110
+ ),
111
+ ),
112
+ ],
113
+ options={
114
+ "verbose_name": "消耗记录",
115
+ "verbose_name_plural": "消耗记录列表",
116
+ "ordering": ["-date_of_using"],
117
+ },
118
+ ),
119
+ ]
@@ -0,0 +1,20 @@
1
+ # Generated by Django 4.2.24 on 2025-09-27 09:37
2
+
3
+ from django.db import migrations, models
4
+
5
+
6
+ class Migration(migrations.Migration):
7
+
8
+ dependencies = [
9
+ ("canteen", "0001_initial"),
10
+ ]
11
+
12
+ operations = [
13
+ migrations.AddField(
14
+ model_name="ingredient",
15
+ name="is_disabled",
16
+ field=models.BooleanField(
17
+ default=False, verbose_name="Is disabled"
18
+ ),
19
+ ),
20
+ ]
@@ -0,0 +1,23 @@
1
+ # Generated by Django 4.2.24 on 2025-09-27 15:48
2
+
3
+ from django.db import migrations, models
4
+
5
+
6
+ class Migration(migrations.Migration):
7
+
8
+ dependencies = [
9
+ ("canteen", "0002_ingredient_is_disabled"),
10
+ ]
11
+
12
+ operations = [
13
+ migrations.AddField(
14
+ model_name="consumption",
15
+ name="is_disabled",
16
+ field=models.BooleanField(default=False, verbose_name="已禁用"),
17
+ ),
18
+ migrations.AlterField(
19
+ model_name="ingredient",
20
+ name="is_disabled",
21
+ field=models.BooleanField(default=False, verbose_name="已禁用"),
22
+ ),
23
+ ]
@@ -0,0 +1,66 @@
1
+ # Generated by Django 4.2.25 on 2025-10-04 01:43
2
+
3
+ import django.db.models.deletion
4
+ from django.conf import settings
5
+ from django.db import migrations, models
6
+
7
+
8
+ class Migration(migrations.Migration):
9
+
10
+ dependencies = [
11
+ migrations.swappable_dependency(settings.AUTH_USER_MODEL),
12
+ (
13
+ "canteen",
14
+ "0003_consumption_is_disabled_alter_ingredient_is_disabled",
15
+ ),
16
+ ]
17
+
18
+ operations = [
19
+ migrations.AlterField(
20
+ model_name="ingredient",
21
+ name="name",
22
+ field=models.CharField(
23
+ max_length=100, verbose_name="ingredient name"
24
+ ),
25
+ ),
26
+ migrations.CreateModel(
27
+ name="Category",
28
+ fields=[
29
+ (
30
+ "id",
31
+ models.BigAutoField(
32
+ auto_created=True,
33
+ primary_key=True,
34
+ serialize=False,
35
+ verbose_name="ID",
36
+ ),
37
+ ),
38
+ (
39
+ "name",
40
+ models.CharField(
41
+ max_length=100, verbose_name="Category name"
42
+ ),
43
+ ),
44
+ ("created_at", models.DateField(verbose_name="Creating Date")),
45
+ (
46
+ "user",
47
+ models.ForeignKey(
48
+ on_delete=django.db.models.deletion.CASCADE,
49
+ related_name="Categories",
50
+ to=settings.AUTH_USER_MODEL,
51
+ verbose_name="Ingredient category",
52
+ ),
53
+ ),
54
+ ],
55
+ ),
56
+ migrations.AlterField(
57
+ model_name="ingredient",
58
+ name="category",
59
+ field=models.ForeignKey(
60
+ on_delete=django.db.models.deletion.PROTECT,
61
+ related_name="ingredients",
62
+ to="canteen.category",
63
+ verbose_name="食材大类",
64
+ ),
65
+ ),
66
+ ]
@@ -0,0 +1,41 @@
1
+ # Generated by Django 4.2.25 on 2025-10-04 05:08
2
+
3
+ import django.db.models.deletion
4
+ from django.conf import settings
5
+ from django.db import migrations, models
6
+
7
+
8
+ class Migration(migrations.Migration):
9
+
10
+ dependencies = [
11
+ migrations.swappable_dependency(settings.AUTH_USER_MODEL),
12
+ ("canteen", "0004_alter_ingredient_name_category_and_more"),
13
+ ]
14
+
15
+ operations = [
16
+ migrations.AlterField(
17
+ model_name="category",
18
+ name="created_at",
19
+ field=models.DateField(verbose_name="创建日期"),
20
+ ),
21
+ migrations.AlterField(
22
+ model_name="category",
23
+ name="name",
24
+ field=models.CharField(max_length=100, verbose_name="食材大类名"),
25
+ ),
26
+ migrations.AlterField(
27
+ model_name="category",
28
+ name="user",
29
+ field=models.ForeignKey(
30
+ on_delete=django.db.models.deletion.CASCADE,
31
+ related_name="Categories",
32
+ to=settings.AUTH_USER_MODEL,
33
+ verbose_name="食材大类",
34
+ ),
35
+ ),
36
+ migrations.AlterField(
37
+ model_name="ingredient",
38
+ name="name",
39
+ field=models.CharField(max_length=100, verbose_name="食材名"),
40
+ ),
41
+ ]