diff --git a/project/migrations/0046_alter_project_mentor_alter_project_mentor_url.py b/project/migrations/0046_alter_project_mentor_alter_project_mentor_url.py new file mode 100644 index 0000000..ace14aa --- /dev/null +++ b/project/migrations/0046_alter_project_mentor_alter_project_mentor_url.py @@ -0,0 +1,23 @@ +# Generated by Django 4.1 on 2024-10-28 06:07 + +from django.db import migrations, models + + +class Migration(migrations.Migration): + + dependencies = [ + ('project', '0045_alter_project_description'), + ] + + operations = [ + migrations.AlterField( + model_name='project', + name='mentor', + field=models.CharField(default='hex', max_length=200, verbose_name='Mentor'), + ), + migrations.AlterField( + model_name='project', + name='mentor_url', + field=models.URLField(default='', verbose_name='MENTOR URL'), + ), + ] diff --git a/project/models.py b/project/models.py index bda9795..8ea4725 100644 --- a/project/models.py +++ b/project/models.py @@ -1,7 +1,7 @@ from django.db import models from django.contrib.auth import get_user_model from contrihub.settings import MAX_SIMULTANEOUS_ISSUE, DAYS_PER_ISSUE_FREE, DAYS_PER_ISSUE_EASY, \ - DAYS_PER_ISSUE_MEDIUM, DAYS_PER_ISSUE_HARD, DAYS_PER_ISSUE_VERY_EASY + DAYS_PER_ISSUE_MEDIUM, DAYS_PER_ISSUE_HARD, DAYS_PER_ISSUE_VERY_EASY, CONTRIHUB_MENTOR, CONTRIHUB_MENTOR_URL from django.utils import timezone from user_profile.models import UserProfile @@ -27,8 +27,8 @@ def __str__(self): class Project(models.Model): name = models.CharField(verbose_name="Name", max_length=200) description = models.TextField(verbose_name="Project Description", default="", null=True) - mentor = models.CharField(verbose_name="Mentor", max_length=200, default=None) - mentor_url = models.URLField(verbose_name="MENTOR URL", default=None) + mentor = models.CharField(verbose_name="Mentor", max_length=200, default="") + mentor_url = models.URLField(verbose_name="MENTOR URL", default="") api_url = models.URLField(verbose_name="API URL")