diff --git a/backend/users/models.py b/backend/users/models.py index cf1a1b16..06b87a49 100644 --- a/backend/users/models.py +++ b/backend/users/models.py @@ -114,33 +114,47 @@ class User(AbstractBaseUser, PermissionsMixin): choices=gender_choices, max_length=1, blank=True, + help_text="User enters the Gender (Male/Female/Other)", ) - date_of_birth = models.DateField( - verbose_name="date_of_birth", - null=True, - blank=True, - ) + address = models.TextField( verbose_name="address", blank=True, + help_text="User enters the street name and house number", ) city = models.CharField( verbose_name="city", max_length=255, blank=True, + help_text="Indicates the city in which user resides", ) state = models.CharField( verbose_name="state", max_length=255, blank=True, + help_text="Indicates the state in which user resides", ) pin_code = models.CharField( verbose_name="Pin Code", max_length=10, blank=True, + help_text="Indicates the pincode of user", + ) + age = models.CharField( + verbose_name="age", + max_length=3, + blank=True, + help_text="Indicates the age of user", + ) + + qualification = models.TextField( + verbose_name="qualification", + max_length=255, + blank=True, + help_text="Indicates the qualification /designation of user", ) GUEST_USER_CHOICES = [ (True, "Yes"), diff --git a/backend/users/serializers.py b/backend/users/serializers.py index e40f224b..e3423790 100644 --- a/backend/users/serializers.py +++ b/backend/users/serializers.py @@ -43,11 +43,12 @@ class Meta: "availability_status", "phone", "gender", - "date_of_birth", "address", "city", "state", "Pin Code", + "age", + "qualification", "guest_user", "enable_mail", "participation_type", @@ -74,11 +75,12 @@ class Meta: "last_name", "phone", "gender", - "date_of_birth", "address", "city", "state", "Pin Code", + "age", + "qualification", "guest_user", "profile_photo", "role",