#32017: TypeError: check() got an unexpected keyword argument 'databases' -------------------------------------+------------------------------------- Reporter: Stian Jensen | Owner: nobody Type: Bug | Status: closed Component: Core (System | Version: 3.1 checks) | Severity: Normal | Resolution: needsinfo Keywords: | Triage Stage: | Unreviewed Has patch: 0 | Needs documentation: 0 Needs tests: 0 | Patch needs improvement: 0 Easy pickings: 0 | UI/UX: 0 -------------------------------------+-------------------------------------
Comment (by Stian Jensen): Hi, after trying to make a reproduce I finally tracked down the issue in our codebase. We have a custom model field where we've overridden the `check` method to do some extra validation of the field config. That method wasn't setup to take in `**kwargs`. It seems like something has changed in django 3.1 that now sends `databases` as a kwarg, so just changing our method signature to `check(self, **kwargs):` solved the problem. Thanks, and sorry for the incorrect bug report! -- Ticket URL: <https://code.djangoproject.com/ticket/32017#comment:2> Django <https://code.djangoproject.com/> The Web framework for perfectionists with deadlines. -- You received this message because you are subscribed to the Google Groups "Django updates" group. To unsubscribe from this group and stop receiving emails from it, send an email to django-updates+unsubscr...@googlegroups.com. To view this discussion on the web visit https://groups.google.com/d/msgid/django-updates/069.39d04ac5297b34feace7ec46fe3b4499%40djangoproject.com.