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

Fix warnings #30

Open
wants to merge 5 commits into
base: master
Choose a base branch
from
Open

Fix warnings #30

wants to merge 5 commits into from

Conversation

kd7lxl
Copy link
Member

@kd7lxl kd7lxl commented Feb 26, 2023

You can now run make test to run the tests in a container. They were reporting a bunch of deprecation warnings, so I resolved them one by one (see commit messages).

Creating a ModelForm without either the 'fields' attribute or the 'exclude' attribute is deprecated. Added 'exclude'.
@@ -58,3 +58,4 @@ def _rev_to_ip(self, name):

class Meta:
model = Record
exclude = []
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

There seems to be a security warning against this approach:

https://docs.djangoproject.com/en/1.8/topics/forms/modelforms/#selecting-the-fields-to-use

Copy link
Contributor

@bkus bkus left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Mostly looks good, just concerned about exposing a potentially bad security practice in this internet-facing software, as noted in the model file comment.

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

Successfully merging this pull request may close these issues.

2 participants