
Adding basic template and login system. Change-Id: I747a417fe6f821964c9fb708d69acc9538567c4c Signed-off-by: Paarhati Ozkasgarli <ozkasgarli@gmail.com>
11 lines
376 B
Python
11 lines
376 B
Python
from __future__ import unicode_literals
|
|
|
|
from django.db import models
|
|
from django.contrib.auth.models import User
|
|
|
|
|
|
class Profile(models.Model):
|
|
user = models.OneToOneField(User, on_delete=models.CASCADE)
|
|
avatar = models.FileField(upload_to='static/avatar/%Y-%m-%d')
|
|
provider_password = models.CharField(max_length=50)
|
|
selected_provider = models.IntegerField() |