Favourite star doesn't work on speaker profile page #70846

Closed
opened 2019-10-15 17:09:43 +02:00 by Sybren A. Stüvel · 4 comments

Favourite star doesn't seem to work on a speaker's profile page.

For example, I have Piere-Armand's talk favourited, but when visiting his profile page the star isn't filled in. Pressing it makes it filled-in, but refreshing the page makes it open again.

Favourite star doesn't seem to work on a speaker's profile page. For example, I have [Piere-Armand's talk](https://conference.blender.org/profile/879) favourited, but when visiting his profile page the star isn't filled in. Pressing it makes it filled-in, but refreshing the page makes it open again.
Author
Owner

Added subscribers: @dr.sybren, @SemMulder, @fsiddi

Added subscribers: @dr.sybren, @SemMulder, @fsiddi

Could not find any logic in the following code:

button.favorite-star(
    onclick="favoriteStarToggle(event)"
    data-is-favorite=is_favorite,
    data-favorite-url="{% url 'presentation_favorite' year=event.edition.year pk=event.pk %}"
)

Can @SemMulder help?

Could not find any logic in the following code: ``` button.favorite-star( onclick="favoriteStarToggle(event)" data-is-favorite=is_favorite, data-favorite-url="{% url 'presentation_favorite' year=event.edition.year pk=event.pk %}" ) ``` Can @SemMulder help?
Sem Mulder was assigned by Francesco Siddi 2019-10-15 17:43:21 +02:00

There is an error in the template, will commit a fix soon. As a side note, why do this :'(?: https://docs.djangoproject.com/en/2.2/ref/templates/api/#how-invalid-variables-are-handled.

There is an error in the template, will commit a fix soon. As a side note, why do this :'(?: https://docs.djangoproject.com/en/2.2/ref/templates/api/#how-invalid-variables-are-handled.

Changed status from 'Open' to: 'Resolved'

Changed status from 'Open' to: 'Resolved'
Sign in to join this conversation.
No Milestone
No Assignees
3 Participants
Notifications
Due Date
The due date is invalid or out of range. Please use the format 'yyyy-mm-dd'.

No due date set.

Dependencies

No dependencies set.

Reference: infrastructure/conference-website#70846
No description provided.