<filename>booking/booking_func/get_room_category.py
from booking.models import Room

def get_room_category(category):
    room = Room.objects.all()[0]
    room_category = dict(room.ROOM_CATEGORIES).get(category, None)

    return room_category