Skip to content

adminsite 0.4.0

Choose a tag to compare

@github-actions github-actions released this 16 Oct 16:05
· 27 commits to main since this release
pip install adminsite==0.4.0

An action's message now sits under the page's heading and stays until it is closed, and a field can say what its empty value means, such as "Every region" for a multi-select left empty. The folded sidebar scrolls a long list of views without a scrollbar.

Before upgrading:

  • Message no longer takes sticky: every message now stays until it is closed, so leave it out.
  • A project that overrides base.html, detail.html, _row.html, _empty.html, _message.html, _value_saved.html or _icons.html should start its copy again from the new one.

What changed:

  • An action's message sits under the page's heading, across the page, and stays until it is closed or the page changes. It was a box in the corner that faded after six seconds, covered the page's own buttons, and let a long file name or key run under its close button.
  • With more views than fit, the folded sidebar scrolls its icons without a scrollbar, which on Windows took half its width and pushed the icons aside, and fades the edge with more icons past it. Unfolded, its scrollbar is thin and quiet, and the open page's link is scrolled into view.
  • Every field takes empty_text, for an empty value that means something: empty_text="Every region" on a multi-select left empty. The list and the record page show it faint, like a placeholder, where they showed a hyphen, and the export writes it into the empty cell. A link to records takes it too.