CreateView): form_class = AnimalForm def get_context_data# how to get the value of the color input ?context = super(AnimalCreate, self).get_context_data(**kwargs)
context['color'] =
我试图通过在django中实现我自己的可排序来练习一些Django基础知识,但我遇到了一些障碍。nums = list(set(records.values_list('fieldA','fieldA'))) if request.method == 'POST': if filter.is_valid():