On 25 nov, 15:11, robos85 wrote:
> Yes it looks that:
> from django.db import models
> from django.contrib.auth.models import User
>
> class UserProfile(models.Model):
> user = models.ForeignKey(User, unique=True)
> register_hash = models.CharField(max_length=32)
>
> And now I want to do
Yes it looks that:
from django.db import models
from django.contrib.auth.models import User
class UserProfile(models.Model):
user = models.ForeignKey(User, unique=True)
register_hash = models.CharField(max_length=32)
And now I want to do something like this:
check = User.objects.all()
On 25 nov, 12:55, robos85 wrote:
> I'm wondering how to confirm user by ref_hash and email. I know how to
> check by ref_hash in my UserProfile model but have no idea how to
> connect users model with my UserProfile model.
> It's required because I'm checking email (Users) and reg_hash
> (UserProf
EDIT - title should be: "confirm user by reg_hash and email"
On 25 Lis, 12:55, robos85 wrote:
> I'm wondering how to confirm user by ref_hash and email. I know how to
> check by ref_hash in my UserProfile model but have no idea how to
> connect users model with my UserProfile model.
> It's requir
I'm wondering how to confirm user by ref_hash and email. I know how to
check by ref_hash in my UserProfile model but have no idea how to
connect users model with my UserProfile model.
It's required because I'm checking email (Users) and reg_hash
(UserProfile).
How to resolve it?
--
You received
5 matches
Mail list logo