I switched to Django 1.8.2 from 1.7 recently, but I encounter with a little bit issues, for example in one of my models I have:
class Author(models.Model):
author = models.ForeignKey(UserProfile, blank=False, primary_key=True)
timestamp = models.DateTimeField(auto_now_add=True)
But when I run server I come across with this following warning:
WARNINGS:
exam.Author.author: (fields.W342) Setting unique=True on a ForeignKey has the same effect as using a OneToOneField.
HINT: ForeignKey(unique=True) is usually better served by a OneToOneField.
What should I do?