Permalink
Switch branches/tags
Nothing to show
Find file
Fetching contributors…
Cannot retrieve contributors at this time
14 lines (12 sloc) 329 Bytes
from django.db import models
from sorl.thumbnail import ImageField
class Profile(models.Model):
name = models.CharField(max_length=255)
bio = models.TextField()
image = ImageField(
upload_to='images/profiles/',
blank=True,
null=True,
)
def __unicode__(self):
return self.name