Hello django developers! This is db_type method definition:
def db_type(self, connection): rel_field = self.rel.get_related_field() if (isinstance(rel_field, AutoField) or (not connection.features.related_fields_match_type and isinstance(rel_field, (PositiveIntegerField, PositiveSmallIntegerField)))): return IntegerField().db_type(connection=connection) return rel_field.db_type(connection=connection) What are the consequences of defining it like this?: def db_type(self, connection): rel_field = self.rel.get_related_field() return rel_field.db_type(connection=connection) It shouldn't break anything but it gives an ability to define custom auto fields. Is the original code buggy or I'm just missing somthig? -- You received this message because you are subscribed to the Google Groups "Django developers" group. To post to this group, send email to django-developers@googlegroups.com. To unsubscribe from this group, send email to django-developers+unsubscr...@googlegroups.com. Visit this group at http://groups.google.com/group/django-developers?hl=en. For more options, visit https://groups.google.com/groups/opt_out.