ForeignKey and m2m solution accordance validation added.
Merge "ForeignKey and m2m solution accordance validation added."