I am new to contributing to django, and i have picked up a ticket listed as 
easy picking #31086 <https://code.djangoproject.com/ticket/31086>. 

It states to make the admin E.202 message (admin inline having, multiple 
foreign keys to the same parent model), to recommend specifying fk_name.

To do so the error message in the ValueError raised by the 
_get_foreign_key() 
<https://github.com/django/django/blob/4161e35048d91fa84abf4dd2ebf64e04e0c37ca4/django/forms/models.py#L988>
 
method must be changed. My concern is, if this change is made then whenever 
the method will raise an error the new error message recommending the 
fk_names will be used, hence the change is not restricted to the admin 
error code only. Will it cause any backward compatibility issues ?  Or is 
it safe to make this change ?

And is the format for the error message given below, is acceptable ?

'appName.ModelOne' has more than one ForeignKeys ('fk_one', 'fk_two') to 
'appName.ModelTwo'.


Thanks !

-- 
You received this message because you are subscribed to the Google Groups 
"Django developers  (Contributions to Django itself)" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to django-developers+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/django-developers/f2b44d25-379d-4e73-9350-035051e0f392%40googlegroups.com.

Reply via email to