mirror of
https://github.com/lucaspalomodevelop/eventcally.git
synced 2026-03-13 00:07:22 +00:00
Merge pull request #216 from DanielGrams/issue/215
Suggestion preview does not show photo #215
This commit is contained in:
commit
355eb9ef7d
@ -143,13 +143,16 @@ def event_suggestion_create_for_admin_unit(au_short_name):
|
||||
event_suggestion.review_status = EventReviewStatus.inbox
|
||||
|
||||
if "preview" in request.args:
|
||||
event_suggestion.admin_unit = admin_unit
|
||||
event_suggestion.organizer = next(
|
||||
(o for o in organizers if o.id == event_suggestion.organizer_id), None
|
||||
)
|
||||
event_suggestion.event_place = next(
|
||||
(p for p in places if p.id == event_suggestion.event_place_id), None
|
||||
)
|
||||
with db.session.no_autoflush:
|
||||
event_suggestion.admin_unit = admin_unit
|
||||
event_suggestion.organizer = next(
|
||||
(o for o in organizers if o.id == event_suggestion.organizer_id),
|
||||
None,
|
||||
)
|
||||
event_suggestion.event_place = next(
|
||||
(p for p in places if p.id == event_suggestion.event_place_id), None
|
||||
)
|
||||
|
||||
return render_template(
|
||||
"widget/event_suggestion/create_preview.html",
|
||||
admin_unit=admin_unit,
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user