Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat: added re-usable Link widget and JSON endpoint (#229)
* feat: endpoint for urls, link widget * Update test action * Fix linting issues * More liniting * fix: v3 compatibility * Add two step select2 internal link widget * Fix linting issues * Fix tests and dependencies * Fix migration and link_is_optional * Remove unused blank parameter * Update changelog * feat: autodetect linkable models through their admin * Fix v3 compat with GrouperModelAdmin * Add tests for endpoint * Fix for v3 * Try again * Update codecov action * Fix test.yml syntax error * Update tests * Test template tags * Update validator tests * Update tag tests * Fix migration * Fix migration test and add tests for Django 5.1 * Update migration test for v3 * Remove test with Django 5.1 and django CMS 3.11 (since they are not compatible) * Add test for migration of anchor-only link. * Add tests for third-party app endpoints * Update translations * Add tests for link widget and compiled translations * Mark untestable lines * Simplified manager retrieval * Improved endpoint tests * Allow simplified setting ``DJANGOCMS_LINK_LINKABLE_MODELS``. * Recover django 4.2 compat * Update readme * Small simplification * Add a nocover for current tests * Update readme * Update classifiers * Add `to_link` template tag * Set correct default for empty link * Add ``DJANGOCMS_LINK_ALLOWED_LINK_TYPES`` config * feat: Allow for `get_link_queryset` method in model admin * Add `DJANGOCMS_LINK_MINIMUM_INPUT_LENGTH` setting * Update tests * Simplify site detection * Update README * remove legacy code * Remove more legacy code * Add some type annotations * Add no cover for an unreachable line in tests * Update README.rst * Update README.rst * Add link icon to plugin (for djangocms_text dropdown) * fix tests * fix: Empty model list not added to URL endpoint result * fix tests * Add `DJANGOCMS_LINK_PAGINATE_BY` setting * fix: LinkField defaulted to `blank=True` * Add static files to `MANIFEST.in` * Remove tests from installation * Optimize `Page` queryset * Fix: restore v3 compatibility * fix: Update GitHub action versions * fix: Run migration test * fix: Do not initialize `REGISTERED_ADMINS` with model setting * Update django-cms dependency * Avoid skipping the migration test * feat: LinkDict (syntactic sugar) * More detailed link types * feat: improve test coverage and use pytest * Update checkout action * Remove django-app-helper from dependencies * Move to pyproject.toml * fix license description in pyproject.toml * Update workflows * Fix flake8 action * Fix precommit flake8 * fix: Setuptools in py39 * Update README * Remove test debug code * add __str__ to LinkDict * Fix pyproject.toml, typo in Changelog * Fix README.rst * Update readme * Some clarifications in the README * One more readme clarification * Update pyproject.toml and tox.ini * Update .github/workflows/test.yml Co-authored-by: Mark Walker <[email protected]> * Move coverage config to pyproject.toml * Better slicing of endpoint querysets * Fix update tests --------- Co-authored-by: Mark Walker <[email protected]>
- Loading branch information