core: Fix syntax errors on postgres
Pick 2.5.1.1 release notes
Fake staticpages initial migration only for 2.5.0

staticpages was added as legalpages in 2.5.0, so for older releases it
is necessary to run all the staticpages migrations, but for 2.5.0 the
initial migration needs to be faked.

This allows to directly upgrade without problems from releases older than
2.5.0.
Recover UI: Allow to filter by goal using dropdown
Recover UI: Only display the goals dropdown if the TP has goals
Alter add_project_goals to work with richer phaselist files

This way we can specify the required data in a file and just import it,
instead of having to type each bit of in different forms.

This helps to minimize the current lack of working method to edit goals.
Recover UI: Redirect to TP root if current resource isn't in chosen goal

This avoids showing the current resource when we change the goal in the
dropdown but the current resource doesn't belong to the chosen goal.
Followup: Remove goals statistics table

We now have enough with the next most important goal translate action
and the prioritized goals dropdown.

This also includes some minor cleanups after previous work on
redirecting to TP root if current resource doesn't belong to chosen goal.
Recover UI: Make goal filtered table display all the data
UNDO: getting several sidebars working at the same time