Ejemplo n.º 1
0
 def get(self, request, *args, **kwargs):
     client_instance = client_check(request.user)
     response = {'client_img': load_client_img(client_instance),
                 'data': skills_page_get(client_instance),
                 }
     return render(request=request, template_name=self.template_name,
                   context=response)
Ejemplo n.º 2
0
def create_skills(name, skill):
    test_client = get_client_instance(name)
    for i in skill:
        Skills.objects.create(client_skills=test_client, skill=i)
    return skills_page_get(test_client)['cl_skill']