Ghostty + Zoxide + Yazi + Oh-My-Zsh 完整配置
- Ghostty - 现代化 GPU 加速终端模拟器
- Zoxide - 智能目录跳转工具(cd 的智能替代)
- Yazi - 快速终端文件管理器
- Oh-My-Zsh - Zsh 配置框架
| """ | |
| Field with multiple *static* choices (not via m2m) | |
| Value is stored in DB as comma-separated values | |
| Default widget is forms.CheckboxSelectMultiple | |
| Python value: list of values | |
| Original Django snippet: https://djangosnippets.org/snippets/1200/ | |
| It's 6 years old and doesn't work with latest Django | |
| Also it implements 'max_choices' functionality - I have removed it for simplicity |
| #!/usr/bin/env python | |
| # | |
| # Copyright 2001-2002 by Vinay Sajip. All Rights Reserved. | |
| # | |
| # Permission to use, copy, modify, and distribute this software and its | |
| # documentation for any purpose and without fee is hereby granted, | |
| # provided that the above copyright notice appear in all copies and that | |
| # both that copyright notice and this permission notice appear in | |
| # supporting documentation, and that the name of Vinay Sajip | |
| # not be used in advertising or publicity pertaining to distribution |