Fixed small bug on templates selection
parent
518c97d989
commit
3343ebec8f
|
@ -48,7 +48,7 @@ class ProjectAdminViewSet(ModelCrudViewSet):
|
|||
|
||||
# TODO REFACTOR THIS
|
||||
if not obj.id:
|
||||
obj.template = self.request.QUERY_PARAMS['template']
|
||||
obj.template = self.request.QUERY_PARAMS.get('template', None)
|
||||
|
||||
# FIXME
|
||||
|
||||
|
|
Loading…
Reference in New Issue