Closed RaphaelKimmig closed 8 years ago
Default values for fields that map to model instances should be the field they reference. See https://github.com/django/django/blob/b60375d4bbb848af7950379e2f35a1a65f7a2591/docs/ref/models/fields.txt#L223
Second pull request because i messed up the foreign key related names in the first one :-)
Code quality remained the same when pulling 72609d6 on RaphaelKimmig:id_foreign_key_defaults into 4c8e22e on paulocheque:master.
Nice! I posted a comment in one of the lines.
Fixed :-)
Repository health increased by 0.10% when pulling 0d8bb19 on RaphaelKimmig:id_foreign_key_defaults into 4c8e22e on paulocheque:master.
Amazing!
Default values for fields that map to model instances should be the field they reference. See https://github.com/django/django/blob/b60375d4bbb848af7950379e2f35a1a65f7a2591/docs/ref/models/fields.txt#L223
Second pull request because i messed up the foreign key related names in the first one :-)