X-Git-Url: http://git.cascardo.eti.br/?a=blobdiff_plain;f=views.py;h=355e5fac2e2dbd6c96bdd254510e5f3eb214917a;hb=10e4da7a21ba341b5d1d90d06e5041cf11ceb8fb;hp=b28f98f9bbabf7b2c1ec763e7f032e43961d7017;hpb=08938928627c21d6d0cd2aec1f547cd5ce503184;p=cascardo%2Feventmanager.git diff --git a/views.py b/views.py index b28f98f..355e5fa 100644 --- a/views.py +++ b/views.py @@ -1,4 +1,4 @@ -# -*- coding: utf8; -*- +# -*- coding: utf-8; -*- """ Copyright (C) 2007 Lincoln de Sousa @@ -147,7 +147,7 @@ def submeter_trabalho(request): t = Trabalho() t.titulo = cd['titulo'] t.tipo = TipoTrabalho.objects.get(pk=cd['tipo']) - t.categoria = CategoriaTrabalho.objects.get(pk=cd['categoria']) + t.categoria = CategoriaTrabalho.objects.get_or_create(nome='Pendente')[0] t.descricao_curta = cd['descricao_curta'] t.descricao_longa = cd['descricao_longa'] t.recursos = cd['recursos']