To get data from the database and convert into a list in Django
Entry.objects.values_list('id', flat=True).order_by('id')
Right, attempting not to sound nerdy as I'm definitely not a nerd. I have friends, I had sex once and yes, it was a woman and definitely not a flesh torch.
Entry.objects.values_list('id', flat=True).order_by('id')
from django.contrib.auth.models import UserThis gives access to the user model. Then just use the user as you would a normal foreign key reference
user_fk = models.ForeignKey(User)