Patrick Ohearn wrote: > I have tried adding the following lines to by models.py. > > author = models.ForeignKey(User) > author = models.ForeignKey(django.contrib.auth.models.User) > > Both to no avail, thank you for your help so far :)
Perhaps a more complete example might help you: {{{ from django.contrib.auth.models import User from django.db import models class Article(models.Model): author = models.ForeignKey(User) }}} Note that you need to import the User model at the top of the file. Regards Darryl
signature.asc
Description: OpenPGP digital signature