Skip to content

Commit

Permalink
Fix slice bug
Browse files Browse the repository at this point in the history
  • Loading branch information
kfdm committed May 28, 2019
1 parent 6855891 commit 4bf1383
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion promgen/views.py
Original file line number Diff line number Diff line change
Expand Up @@ -710,7 +710,7 @@ def get_initial(self):
initial = {"owner": self.request.user}
if "shard" in self.request.GET:
initial["shard"] = get_object_or_404(
models.Shard, pk=self.request.GET["shard"][0]
models.Shard, pk=self.request.GET["shard"]
)
return initial

Expand Down

0 comments on commit 4bf1383

Please sign in to comment.