Compare commits
2 Commits
| Author | SHA1 | Date | |
|---|---|---|---|
| 77d92f6c96 | |||
| d5d0eb6cd8 |
@ -619,6 +619,12 @@ The Edit log form should have from top to bottom:
|
|||||||
- Expansion ids (which should a multi-select widget of expansions for this game)
|
- Expansion ids (which should a multi-select widget of expansions for this game)
|
||||||
- Location (which should be a drop down of BoardGameLocations for this user)
|
- Location (which should be a drop down of BoardGameLocations for this user)
|
||||||
|
|
||||||
|
* Version 59.5 [1/1]
|
||||||
|
** DONE [#A] Fix bug where all variants for board games are in form :boardgames:
|
||||||
|
:PROPERTIES:
|
||||||
|
:ID: 9c4cd193-580a-5b33-8832-1feffea7bd53
|
||||||
|
:END:
|
||||||
|
|
||||||
* Version 59.4 [2/2]
|
* Version 59.4 [2/2]
|
||||||
** DONE Fix bug in fetching expansions for board games :boardgames:
|
** DONE Fix bug in fetching expansions for board games :boardgames:
|
||||||
:PROPERTIES:
|
:PROPERTIES:
|
||||||
|
|||||||
@ -1,6 +1,6 @@
|
|||||||
[tool.poetry]
|
[tool.poetry]
|
||||||
name = "vrobbler"
|
name = "vrobbler"
|
||||||
version = "59.4"
|
version = "59.5"
|
||||||
description = ""
|
description = ""
|
||||||
authors = ["Colin Powell <colin@unbl.ink>"]
|
authors = ["Colin Powell <colin@unbl.ink>"]
|
||||||
|
|
||||||
|
|||||||
@ -51,6 +51,7 @@ from music.aggregators import (
|
|||||||
scrobble_counts,
|
scrobble_counts,
|
||||||
week_of_scrobbles,
|
week_of_scrobbles,
|
||||||
)
|
)
|
||||||
|
from boardgames.models import BoardGame, BoardGameVariant
|
||||||
from pendulum.parsing.exceptions import ParserError
|
from pendulum.parsing.exceptions import ParserError
|
||||||
from profiles.models import UserProfile
|
from profiles.models import UserProfile
|
||||||
from profiles.utils import now_user_timezone
|
from profiles.utils import now_user_timezone
|
||||||
@ -1236,8 +1237,6 @@ class ScrobbleDetailView(DetailView):
|
|||||||
return self.object.media_obj.logdata_cls().form()
|
return self.object.media_obj.logdata_cls().form()
|
||||||
|
|
||||||
def _update_board_game_widgets(self, form):
|
def _update_board_game_widgets(self, form):
|
||||||
from boardgames.models import BoardGame
|
|
||||||
|
|
||||||
if not isinstance(self.object.media_obj, BoardGame):
|
if not isinstance(self.object.media_obj, BoardGame):
|
||||||
return
|
return
|
||||||
|
|
||||||
@ -1248,6 +1247,9 @@ class ScrobbleDetailView(DetailView):
|
|||||||
form.fields["expansion_ids"].queryset = expansions
|
form.fields["expansion_ids"].queryset = expansions
|
||||||
|
|
||||||
if "variant_ids" in form.fields:
|
if "variant_ids" in form.fields:
|
||||||
|
form.fields["variant_ids"].queryset = BoardGameVariant.objects.filter(
|
||||||
|
board_game=self.object.media_obj
|
||||||
|
)
|
||||||
form.fields["variant_ids"].widget.attrs["data-board-game-id"] = (
|
form.fields["variant_ids"].widget.attrs["data-board-game-id"] = (
|
||||||
self.object.media_obj.id
|
self.object.media_obj.id
|
||||||
)
|
)
|
||||||
@ -1957,8 +1959,6 @@ class EmbeddableTopBoardGamesWidget(BaseEmbeddableWidget):
|
|||||||
scrobble_filter = {"scrobble__played_to_completion": True}
|
scrobble_filter = {"scrobble__played_to_completion": True}
|
||||||
|
|
||||||
def get_items(self, user, start_date, end_date):
|
def get_items(self, user, start_date, end_date):
|
||||||
from boardgames.models import BoardGame
|
|
||||||
|
|
||||||
return super().get_items(user, start_date, end_date, BoardGame)
|
return super().get_items(user, start_date, end_date, BoardGame)
|
||||||
|
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user