{"id":24390289,"url":"https://github.com/eeriksp/django-validation-report","last_synced_at":"2026-05-17T15:04:23.133Z","repository":{"id":49694521,"uuid":"149922591","full_name":"eeriksp/django-validation-report","owner":"eeriksp","description":"A Django app, which checks whether all model instances can be resaved without errors","archived":false,"fork":false,"pushed_at":"2021-06-10T20:49:26.000Z","size":21,"stargazers_count":1,"open_issues_count":2,"forks_count":0,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-10-19T21:48:13.503Z","etag":null,"topics":["django","django2","python","python3","validation"],"latest_commit_sha":null,"homepage":"","language":"Python","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/eeriksp.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":"CONTRIBUTING.md","funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2018-09-22T21:36:14.000Z","updated_at":"2018-10-04T10:10:26.000Z","dependencies_parsed_at":"2022-08-23T17:10:57.003Z","dependency_job_id":null,"html_url":"https://github.com/eeriksp/django-validation-report","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/eeriksp/django-validation-report","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/eeriksp%2Fdjango-validation-report","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/eeriksp%2Fdjango-validation-report/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/eeriksp%2Fdjango-validation-report/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/eeriksp%2Fdjango-validation-report/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/eeriksp","download_url":"https://codeload.github.com/eeriksp/django-validation-report/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/eeriksp%2Fdjango-validation-report/sbom","scorecard":{"id":367978,"data":{"date":"2025-08-11","repo":{"name":"github.com/eeriksp/django-validation-report","commit":"9cb4525d4667b8d0aaeb6efdbc846341d9835068"},"scorecard":{"version":"v5.2.1-40-gf6ed084d","commit":"f6ed084d17c9236477efd66e5b258b9d4cc7b389"},"score":1.7,"checks":[{"name":"SAST","score":0,"reason":"no SAST tool detected","details":["Warn: no pull requests merged into dev branch"],"documentation":{"short":"Determines if the project uses static code analysis.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#sast"}},{"name":"Packaging","score":-1,"reason":"packaging workflow not detected","details":["Warn: no GitHub/GitLab publishing workflow detected."],"documentation":{"short":"Determines if the project is published as a package that others can easily download, install, easily update, and uninstall.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#packaging"}},{"name":"Maintained","score":0,"reason":"0 commit(s) and 0 issue activity found in the last 90 days -- score normalized to 0","details":null,"documentation":{"short":"Determines if the project is \"actively maintained\".","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#maintained"}},{"name":"Binary-Artifacts","score":10,"reason":"no binaries found in the repo","details":null,"documentation":{"short":"Determines if the project has generated executable (binary) artifacts in the source repository.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#binary-artifacts"}},{"name":"Dangerous-Workflow","score":-1,"reason":"no workflows found","details":null,"documentation":{"short":"Determines if the project's GitHub Action workflows avoid dangerous patterns.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#dangerous-workflow"}},{"name":"Token-Permissions","score":-1,"reason":"No tokens found","details":null,"documentation":{"short":"Determines if the project's workflows follow the principle of least privilege.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#token-permissions"}},{"name":"Code-Review","score":0,"reason":"Found 0/18 approved changesets -- score normalized to 0","details":null,"documentation":{"short":"Determines if the project requires human code review before pull requests (aka merge requests) are merged.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#code-review"}},{"name":"Pinned-Dependencies","score":-1,"reason":"no dependencies found","details":null,"documentation":{"short":"Determines if the project has declared and pinned the dependencies of its build process.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#pinned-dependencies"}},{"name":"CII-Best-Practices","score":0,"reason":"no effort to earn an OpenSSF best practices badge detected","details":null,"documentation":{"short":"Determines if the project has an OpenSSF (formerly CII) Best Practices Badge.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#cii-best-practices"}},{"name":"Security-Policy","score":0,"reason":"security policy file not detected","details":["Warn: no security policy file detected","Warn: no security file to analyze","Warn: no security file to analyze","Warn: no security file to analyze"],"documentation":{"short":"Determines if the project has published a security policy.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#security-policy"}},{"name":"Fuzzing","score":0,"reason":"project is not fuzzed","details":["Warn: no fuzzer integrations found"],"documentation":{"short":"Determines if the project uses fuzzing.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#fuzzing"}},{"name":"Signed-Releases","score":-1,"reason":"no releases found","details":null,"documentation":{"short":"Determines if the project cryptographically signs release artifacts.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#signed-releases"}},{"name":"License","score":10,"reason":"license file detected","details":["Info: project has a license file: LICENSE:0","Info: FSF or OSI recognized license: MIT License: LICENSE:0"],"documentation":{"short":"Determines if the project has defined a license.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#license"}},{"name":"Branch-Protection","score":0,"reason":"branch protection not enabled on development/release branches","details":["Warn: branch protection not enabled for branch 'master'"],"documentation":{"short":"Determines if the default and release branches are protected with GitHub's branch protection settings.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#branch-protection"}},{"name":"Vulnerabilities","score":0,"reason":"19 existing vulnerabilities detected","details":["Warn: Project is vulnerable to: PYSEC-2019-17 / GHSA-337x-4q8g-prc5","Warn: Project is vulnerable to: PYSEC-2021-98 / GHSA-68w8-qjq3-2gfm","Warn: Project is vulnerable to: GHSA-6c3j-c64m-qhgq","Warn: Project is vulnerable to: PYSEC-2019-10 / GHSA-6c7v-2f49-8h26","Warn: Project is vulnerable to: PYSEC-2018-3 / GHSA-6mx3-3vqg-hpp2","Warn: Project is vulnerable to: PYSEC-2019-13 / GHSA-6r97-cj55-9hrq","Warn: Project is vulnerable to: PYSEC-2019-79 / GHSA-7rp2-fm2h-wchj","Warn: Project is vulnerable to: GHSA-7xr5-9hcq-chf9","Warn: Project is vulnerable to: GHSA-8x94-hmjh-97hq","Warn: Project is vulnerable to: PYSEC-2019-11 / GHSA-c4qh-4vgv-qc6g","Warn: Project is vulnerable to: PYSEC-2019-12 / GHSA-h5jv-4p7w-64jg","Warn: Project is vulnerable to: GHSA-hmr4-m2h5-33qx","Warn: Project is vulnerable to: PYSEC-2019-15 / GHSA-hvmf-r92r-27hr","Warn: Project is vulnerable to: GHSA-rrqc-c2jx-6jgv","Warn: Project is vulnerable to: PYSEC-2019-14 / GHSA-v9qg-3j8p-r63v","Warn: Project is vulnerable to: GHSA-vfq6-hq5r-27r6","Warn: Project is vulnerable to: PYSEC-2019-18 / GHSA-wh4h-v3f2-r2pp","Warn: Project is vulnerable to: PYSEC-2019-130","Warn: Project is vulnerable to: PYSEC-2019-131"],"documentation":{"short":"Determines if the project has open, known unfixed vulnerabilities.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#vulnerabilities"}}]},"last_synced_at":"2025-08-18T12:19:08.589Z","repository_id":49694521,"created_at":"2025-08-18T12:19:08.589Z","updated_at":"2025-08-18T12:19:08.589Z"},"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":33143276,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-05-17T09:28:26.183Z","status":"ssl_error","status_checked_at":"2026-05-17T09:27:52.702Z","response_time":107,"last_error":"SSL_connect returned=1 errno=0 peeraddr=140.82.121.6:443 state=error: unexpected eof while reading","robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":false,"can_crawl_api":true,"host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["django","django2","python","python3","validation"],"created_at":"2025-01-19T16:16:32.489Z","updated_at":"2026-05-17T15:04:23.093Z","avatar_url":"https://github.com/eeriksp.png","language":"Python","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Django Validation Report\n\nDjango Validation Report (DVR) allows you to control whether all model instances can be resaved without errors.\n\nSuppose you have a Model:\n\n```py\nclass Person(models.Model):\n    is_monastic = models.BooleanField()\n    monastic_name = models.CharField(max_length=100, blank=True)\n```\n\nLater on, after there are already some Person objects in the database, you add a `clean` method to the model:\n\n```py\n    def clean(self):\n        if self.is_monastic and not self.monastic_name:\n            raise ValidationError(\n                \"If a Person is monastic, 'monastic_name' must be specified\")\n```\n\nNow, it would be nice to control whether the old Person objects meet new standards. Otherwise unexpected ValidationErrors might be risen if the old ones are being resaved.\n\nDjango Validation Report offers a solution to this problem.\n\n## Features\n\nDVR provides:\n\n1. a report view for logged in users\n2. a `manage.py` command to show the report on the console\n3. automatic report email sending to admins; this is designed to be addded to your CI/CD script\n\n## Requirements\n\n- Python 3\n- Django 2 (should aslo work with previous versions, but it hasn't been tested. See issue [#1](https://github.com/eeriksp/django-validation-report/issues/1))\n\n## Installation\n\nInstall using pip:\n\n```\npip install django-validation-report\n```\n\nThen add `validation_report` to your INSTALLED_APPS.\n\n```py\nINSTALLED_APPS = [\n    ...\n    'validation_report.apps.ValidationReportConfig',\n]\n```\n\nTo your main `urls.py` add:\n\n```py\nurlpatterns = [\n    ...\n    path('validation-report/', include('validation_report.urls')),\n]\n```\n\nAlso make sure you have specified `LOGIN_URL` in your `settings.py`. In order to see the generated report, the user must be logged in. If you do not have a custom login page, you can just use the default admin login page `LOGIN_URL = '/admin/login/'`.\n\nThe emails are sent to `settings.ADMINS`, so check that this constant has been specified and email sending has been configured.\n\n## Usage\n\n### View\n\nGo to `/validation-report/` URL. As a logged in user, you should see something like this:\n\n```\nValidation report\n\nRun full_clean() for all Django model instances and return a report regarding failures.\n\nValidating 'Person' with id '1' raised [ValidationError([\"If a Person is monastic, 'monastic_name' must be specified\"])]\nValidating 'Person' with id '3' raised [ValidationError([\"If a Person is monastic, 'monastic_name' must be specified\"])]\n\nTask completed, 2  errors detected\n```\n\n\nIf an error occurred and the server stopped delivering the `StreamingHttpResponse` before all model instances were checked, an error message will be shown:\n\n```\nValidation report\n\nRun full_clean() for all Django model instances and return a report regarding failures.\n\nValidating 'Person' with id '1' raised [ValidationError([\"If a Person is monastic, 'monastic_name' must be specified\"])]\n\nERROR: Task was not completed, server response was interrupted.\n```\n\n### `Manage.py` command\n\nType\n\n```\n$ ./manage.py validationreport\n```\nThe given report is similar to the one returned by the view in the previous chapter.\n\n### Email sending\n\nType\n\n```\n$ ./manage.py validationreport --sendmail\n```\nYou should see something like this:\n\n```\nRun `full_clean()` for all Django model instances and return a report regarding failures.\nValidating 'Person' with id '1' raised [ValidationError([\"If a Person is monastic, 'monastic_name' must be specified\"])]\nValidating 'Person' with id '3' raised [ValidationError([\"If a Person is monastic, 'monastic_name' must be specified\"])]\nTask completed, 2  errors detected\n\nThe report was sent to the following addresses:\nabbot@monastery.eu\n```\n\nThis command is especially useful for adding to your CI/CD script, so you will be notified on time and all possible confusion can be avoided.\n\n## License\n\nDVR is published under MIT license.\n\nInspired by [SQLite developers](https://www.sqlite.org/different.html), we add the following blessing:\n\n\u003eMay you do good and not evil\\\nMay you find forgiveness for yourself and forgive others\\\nMay you share freely, never taking more than you give.","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Feeriksp%2Fdjango-validation-report","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Feeriksp%2Fdjango-validation-report","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Feeriksp%2Fdjango-validation-report/lists"}