# Path: src/quests/models.py
# class Quest(models.Model):
#     
#     STORY_TYPE = "STORY"
#     SIDE_TYPE = "SIDE"
#     SHRINE_TYPE = "SHRINE"
#     MEMORY_TYPE = "MEMORY"
#     
#     QUEST_TYPES = (
#         (STORY_TYPE, "Main Story"),
#         (SIDE_TYPE, "Side Quest"),
#         (SHRINE_TYPE, "Shrine Quest"),
#         (MEMORY_TYPE, "Memories")
#     )
# 
#     quest_name = models.CharField(max_length=200, unique=True)
#     quest_type = models.CharField(max_length=20, choices=QUEST_TYPES, default=STORY_TYPE)
# 
#     def __str__(self):
#         return "%s: %s" % (self.get_quest_type_display(), self.quest_name)


from django.shortcuts import render
from .models import Quest
"""botw-tracker quests app views

Copyright (c) 2017, Evan Moritz.

botw-tracker is an open source software project released under the MIT License.
See the accompanying LICENSE file for terms.

"""

def index(request):

# Path: src/quests/models.py
# class Quest(models.Model):
#     
#     STORY_TYPE = "STORY"
#     SIDE_TYPE = "SIDE"
#     SHRINE_TYPE = "SHRINE"
#     MEMORY_TYPE = "MEMORY"
#     
#     QUEST_TYPES = (
#         (STORY_TYPE, "Main Story"),
#         (SIDE_TYPE, "Side Quest"),
#         (SHRINE_TYPE, "Shrine Quest"),
#         (MEMORY_TYPE, "Memories")
#     )
# 
#     quest_name = models.CharField(max_length=200, unique=True)
#     quest_type = models.CharField(max_length=20, choices=QUEST_TYPES, default=STORY_TYPE)
# 
#     def __str__(self):
#         return "%s: %s" % (self.get_quest_type_display(), self.quest_name)


# Path: src/quests/views.py
from django.shortcuts import render
from .models import Quest

"""botw-tracker quests app views

Copyright (c) 2017, Evan Moritz.

botw-tracker is an open source software project released under the MIT License.
See the accompanying LICENSE file for terms.

"""

def index(request):

    quest_list = Quest.objects.order_by('quest_name')