✅ Purpose

Stores a JS file that can be injected into a template using a tag.

🧩 Fields

  • name — unique name
  • tag — unique tag used in templates ({{ tag }})
  • file — FileField (.js, max 10 MB)
  • notes — optional
  • owner — FK to User
  • created_at, updated_at

🧠 Properties & methods

  • file_name → filename without path
  • file_pathjs/<file_name>
  • __str__() → returns name

🔗 Relations

  • Template.java_script_files — Many‑to‑Many