from django.db import models
from django.contrib.auth.models import User

class userProfile(models.Model):

	def url(self,filename):
		ruta = "MultimediaData/Users/%s/%s"%(self.user.username,filename)
		return ruta

	user = models.OneToOneField(User) # no puede aver 2 perfiles con el mismo usuario
	photo = models.ImageField(upload_to=url)
	telefono = models.CharField(max_length = 30)

	def __unicode__(self):
		return self.user.username


# Create your models here.

b8054da0dcb3e0c6b249e8fcdb2db4f86437dc7f
<mask token>


class userProfile(models.Model):

    def url(self, filename):
        ruta = 'MultimediaData/Users/%s/%s' % (self.user.username, filename)
        return ruta
    <mask token>
    <mask token>
    <mask token>
    <mask token>

<mask token>


class userProfile(models.Model):

    def url(self, filename):
        ruta = 'MultimediaData/Users/%s/%s' % (self.user.username, filename)
        return ruta
    <mask token>
    <mask token>
    <mask token>

    def __unicode__(self):
        return self.user.username

<mask token>


class userProfile(models.Model):

    def url(self, filename):
        ruta = 'MultimediaData/Users/%s/%s' % (self.user.username, filename)
        return ruta
    user = models.OneToOneField(User)
    photo = models.ImageField(upload_to=url)
    telefono = models.CharField(max_length=30)

    def __unicode__(self):
        return self.user.username

from django.db import models
from django.contrib.auth.models import User


class userProfile(models.Model):

    def url(self, filename):
        ruta = 'MultimediaData/Users/%s/%s' % (self.user.username, filename)
        return ruta
    user = models.OneToOneField(User)
    photo = models.ImageField(upload_to=url)
    telefono = models.CharField(max_length=30)

    def __unicode__(self):
        return self.user.username

from django.db import models
from django.contrib.auth.models import User

class userProfile(models.Model):

	def url(self,filename):
		ruta = "MultimediaData/Users/%s/%s"%(self.user.username,filename)
		return ruta

	user = models.OneToOneField(User) # no puede aver 2 perfiles con el mismo usuario
	photo = models.ImageField(upload_to=url)
	telefono = models.CharField(max_length = 30)

	def __unicode__(self):
		return self.user.username


# Create your models here.
