CarletonComputerScienceSociety / core

The core application behind our online services and events

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Add Difficulty column to Questions

MathyouMB opened this issue · comments

Please add the difficulty column (string) to the questions model. Please also update the corresponding serializers so that difficulty can be accessed via its corresponding endpoints.

On the model, use the following syntax to ensure the difficulty can be of the following options: Easy, Medium, and Hard.

format = models.CharField(
        choices=(
            ("t", "text"),
            ("h", "html"),
            ("m", "mathjax"),
        ),
        max_length=1,
    )

Screenshot 2021-04-29 at 1 12 53 PM

Hi @MathyouMB - can myself or @aidutcher take this? We are peer programming together. I would submit the PR with credit to him.

Hi @MathyouMB - can myself or @aidutcher take this? We are peer programming together. I would submit the PR with credit to him.

Hey :)

Yeah for sure! I'll assign you to this.