Load campaign data lazily.

Error checking comes later, but the new game wizard opens much faster by
not spending time creating theaters it doesn't need.

Fixes https://github.com/Khopa/dcs_liberation/issues/469
This commit is contained in:
Dan Albert
2020-11-26 22:14:23 -08:00
parent 5d4fccd438
commit fd454dce74
5 changed files with 16 additions and 16 deletions

View File

@@ -1,7 +1,3 @@
<strong>Author(s): {{ campaign.authors }}</strong>
<br/>
<br/>
<strong>Number of control points:</strong> {{ campaign.theater.controlpoints|length }}
<br/>
{{ campaign.description|safe }}

View File

@@ -1,7 +1,3 @@
<strong>Auteur(s) : {{ campaign.authors }}</strong>
<br/>
<br/>
<strong>Nombre de points :</strong> {{ campaign.theater.controlpoints|length }}
<br/>
{{ campaign.description|safe }}