Skip to content

Create Category Model  #23

@MathyouMB

Description

@MathyouMB

Create a new Category model. Questions will have-many Categories and Categories will have-many Questions.

Django will automatically create the question_categories table if you do the first option seen in this video

Add validation to ensure a question cannot have the same category twice.

Add a test to validate that a question cannot have the same category twice.

Screenshot 2021-04-29 at 1 35 46 PM

Metadata

Metadata

Labels

code challengeCode Challenge project specificenhancementNew feature or request

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions