Also prefill year between game and edition
This commit is contained in:
parent
881e5df3d1
commit
cbf872d21f
|
@ -477,7 +477,12 @@ def add_edition(request, game_id=None):
|
||||||
if game_id:
|
if game_id:
|
||||||
game = Game.objects.get(id=game_id)
|
game = Game.objects.get(id=game_id)
|
||||||
form = EditionForm(
|
form = EditionForm(
|
||||||
initial={"game": game, "name": game.name, "sort_name": game.sort_name}
|
initial={
|
||||||
|
"game": game,
|
||||||
|
"name": game.name,
|
||||||
|
"sort_name": game.sort_name,
|
||||||
|
"year_released": game.year_released,
|
||||||
|
}
|
||||||
)
|
)
|
||||||
else:
|
else:
|
||||||
form = EditionForm()
|
form = EditionForm()
|
||||||
|
|
Loading…
Reference in New Issue