solve todos
This commit is contained in:
parent
ad1252eabf
commit
0e9ef03031
@ -55,7 +55,6 @@ def detail_country(request, name_iso):
|
|||||||
def show_country(country, single_country=False):
|
def show_country(country, single_country=False):
|
||||||
''' detail_view for a country '''
|
''' detail_view for a country '''
|
||||||
|
|
||||||
# TODO why c instead country?
|
|
||||||
c = {
|
c = {
|
||||||
'name_iso': country.name_iso,
|
'name_iso': country.name_iso,
|
||||||
'name': country.name,
|
'name': country.name,
|
||||||
@ -192,7 +191,6 @@ def add_user(request, username, color):
|
|||||||
status = 1
|
status = 1
|
||||||
message = 'Du musst einen Namen und Farbe angeben.'
|
message = 'Du musst einen Namen und Farbe angeben.'
|
||||||
|
|
||||||
# TODO is .dumps necessary?
|
|
||||||
return HttpResponse(dumps({ 'status': status, 'message': message }))
|
return HttpResponse(dumps({ 'status': status, 'message': message }))
|
||||||
|
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user