Skip to content

Conversation

@SherryShijiarui
Copy link

No description provided.

# must be query, too long to be department. ignore numbers we may
# have. e.g. "Introduction"
return Course.objects.filter(title__icontains=department_or_query)
return Course.objects.filter(course_title__icontains=department_or_query)
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

why change this

instructors = models.ManyToManyField("Instructor")

term = models.CharField(max_length=4, db_index=True)
term = models.CharField(max_length=10, db_index=True)
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

term is like 25F, 26S. max length of 4 is enough

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants