Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

filters.py and forms.py show examples of specifying fields in the filtterset and in the Form. #164

Open
smk4664 opened this issue Sep 12, 2024 · 0 comments

Comments

@smk4664
Copy link
Contributor

smk4664 commented Sep 12, 2024

Environment

  • Python version: 3.11
  • cookiecutter-nautobot-app template version: Nautobot-app-v2.3.2

Observed Behavior

************* Module nautobot_dev_example.filters
nautobot_dev_example/filters.py:17:17: E4271: Use `fields = '__all__'` instead of specifying each field individually. (nb-use-fields-all)
************* Module nautobot_dev_example.forms
nautobot_dev_example/forms.py:21:17: E4271: Use `fields = '__all__'` instead of specifying each field individually. (nb-use-fields-all)

Expected Behavior

Running pylint on freshly baked cookie passes.

Steps to Reproduce

  1. Bake a new repo with Nautobot-app-v2.3.2
  2. Specify model creation when baking
  3. Run poetry lock and inv pylint.

The cookie needs to be updated to follow pylint-nautobot standards.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants