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)
|
||||
- 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]
|
||||
** DONE Fix bug in fetching expansions for board games :boardgames:
|
||||
:PROPERTIES:
|
||||
|
||||
@ -1,6 +1,6 @@
|
||||
[tool.poetry]
|
||||
name = "vrobbler"
|
||||
version = "59.4"
|
||||
version = "59.5"
|
||||
description = ""
|
||||
authors = ["Colin Powell <colin@unbl.ink>"]
|
||||
|
||||
|
||||
@ -51,6 +51,7 @@ from music.aggregators import (
|
||||
scrobble_counts,
|
||||
week_of_scrobbles,
|
||||
)
|
||||
from boardgames.models import BoardGame, BoardGameVariant
|
||||
from pendulum.parsing.exceptions import ParserError
|
||||
from profiles.models import UserProfile
|
||||
from profiles.utils import now_user_timezone
|
||||
@ -1236,8 +1237,6 @@ class ScrobbleDetailView(DetailView):
|
||||
return self.object.media_obj.logdata_cls().form()
|
||||
|
||||
def _update_board_game_widgets(self, form):
|
||||
from boardgames.models import BoardGame
|
||||
|
||||
if not isinstance(self.object.media_obj, BoardGame):
|
||||
return
|
||||
|
||||
@ -1248,6 +1247,9 @@ class ScrobbleDetailView(DetailView):
|
||||
form.fields["expansion_ids"].queryset = expansions
|
||||
|
||||
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"] = (
|
||||
self.object.media_obj.id
|
||||
)
|
||||
@ -1957,8 +1959,6 @@ class EmbeddableTopBoardGamesWidget(BaseEmbeddableWidget):
|
||||
scrobble_filter = {"scrobble__played_to_completion": True}
|
||||
|
||||
def get_items(self, user, start_date, end_date):
|
||||
from boardgames.models import BoardGame
|
||||
|
||||
return super().get_items(user, start_date, end_date, BoardGame)
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user