#34944: Missing or misinferred attributes in output fields of generated fields -------------------------------------+------------------------------------- Reporter: Paolo Melchiorre | Owner: Om Dahale Type: Bug | Status: assigned Component: Database layer | Version: 5.0 (models, ORM) | Severity: Release blocker | Resolution: Keywords: field, database, | Triage Stage: Accepted generated, output_field | Has patch: 1 | Needs documentation: 0 Needs tests: 0 | Patch needs improvement: 0 Easy pickings: 0 | UI/UX: 0 -------------------------------------+-------------------------------------
Comment (by Om Dahale): Reposting from PR.. I did this and now receiving the message to specify `max_length` {{{ def check(self, **kwargs): databases = kwargs.get("databases") or [] return [ *super().check(**kwargs), *self._check_output_field(**kwargs), *self._check_supported(databases), *self._check_persistence(databases), ] def _check_output_field(self, **kwargs): # Ignore field name checks as the output_field is not a field. self.output_field.name = self.name + "_output_field" self.output_field.model = self.model return self.output_field.check(**kwargs) }}} is this correct? -- Ticket URL: <https://code.djangoproject.com/ticket/34944#comment:26> 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/0107018bb2595126-f7685d3e-8fd4-4fbb-9769-dec7e4cc34f5-000000%40eu-central-1.amazonses.com.