Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
7 changes: 4 additions & 3 deletions src/profiles/models.py
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
from __future__ import unicode_literals
from django.utils.encoding import python_2_unicode_compatible
from django.utils.translation import ugettext_lazy as _
import uuid
from django.db import models
from django.conf import settings
Expand All @@ -11,12 +12,12 @@ class BaseProfile(models.Model):
slug = models.UUIDField(default=uuid.uuid4, blank=True, editable=False)
# Add more user profile fields here. Make sure they are nullable
# or with default values
picture = models.ImageField('Profile picture',
picture = models.ImageField(_("Profile picture"),
upload_to='profile_pics/%Y-%m-%d/',
null=True,
blank=True)
bio = models.CharField("Short Bio", max_length=200, blank=True, null=True)
email_verified = models.BooleanField("Email verified", default=False)
bio = models.CharField(_("Short Bio"), max_length=200, blank=True, null=True)
email_verified = models.BooleanField(_("Email verified"), default=False)

class Meta:
abstract = True
Expand Down