✅ Purpose

A text label that appears inside a ButtonsContainer.

🧩 Fields

  • text — label text
  • text_color — RGB color, default #000000
  • text_style — one of: bold, italic, underline, strikethrough
  • buttons_container — FK to ButtonsContainer
  • owner — FK to User
  • created_at, updated_at

🧠 Methods

  • render_html()

    • builds a <span> using BASE_LABEL_TEMPLATE
    • applies style and color
  • copy(user=None, buttons_container=None)

    • creates a new Label and optionally attaches to another container
  • __str__() → returns text

🔗 Relations

  • belongs to one ButtonsContainer