|
|
|
@ -120,7 +120,6 @@ class User(AbstractBaseUser, PermissionsMixin): |
|
|
|
|
|
|
|
|
|
|
|
avatar = models.ImageField(upload_to='users/avatars/', blank=True) |
|
|
|
avatar = models.ImageField(upload_to='users/avatars/', blank=True) |
|
|
|
contractor_answers = GenericRelation('projects.Answer') |
|
|
|
contractor_answers = GenericRelation('projects.Answer') |
|
|
|
rating = models.FloatField(default=0.0) |
|
|
|
|
|
|
|
contractor_resume = models.OneToOneField(ContractorResume, related_name='contractor', blank=True, null=True) |
|
|
|
contractor_resume = models.OneToOneField(ContractorResume, related_name='contractor', blank=True, null=True) |
|
|
|
contractor_specializations = TreeManyToManyField(Specialization, related_name='contractors', blank=True) |
|
|
|
contractor_specializations = TreeManyToManyField(Specialization, related_name='contractors', blank=True) |
|
|
|
contractor_status = models.CharField(default='free', max_length=20, choices=STATUSES) |
|
|
|
contractor_status = models.CharField(default='free', max_length=20, choices=STATUSES) |
|
|
|
@ -138,6 +137,7 @@ class User(AbstractBaseUser, PermissionsMixin): |
|
|
|
location = TreeForeignKey('common.Location', related_name='users', null=True, blank=True) |
|
|
|
location = TreeForeignKey('common.Location', related_name='users', null=True, blank=True) |
|
|
|
patronym = models.CharField(max_length=255, blank=True) |
|
|
|
patronym = models.CharField(max_length=255, blank=True) |
|
|
|
phone = models.CharField(max_length=30, blank=True, null=True) |
|
|
|
phone = models.CharField(max_length=30, blank=True, null=True) |
|
|
|
|
|
|
|
rating = models.FloatField(default=0.0) |
|
|
|
skype = models.CharField(max_length=100, blank=True) |
|
|
|
skype = models.CharField(max_length=100, blank=True) |
|
|
|
username = models.CharField(max_length=50, unique=True) |
|
|
|
username = models.CharField(max_length=50, unique=True) |
|
|
|
website = models.CharField(max_length=255, blank=True) |
|
|
|
website = models.CharField(max_length=255, blank=True) |
|
|
|
|