Skip to content

Commit

Permalink
alter the mentor and mentor url field
Browse files Browse the repository at this point in the history
  • Loading branch information
hexwhiz committed Oct 28, 2024
1 parent b7a7d9c commit e2b8453
Show file tree
Hide file tree
Showing 2 changed files with 26 additions and 3 deletions.
Original file line number Diff line number Diff line change
@@ -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'),
),
]
6 changes: 3 additions & 3 deletions project/models.py
Original file line number Diff line number Diff line change
@@ -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

Expand All @@ -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")

Expand Down

0 comments on commit e2b8453

Please sign in to comment.