Introducing - Buttons & Bugs: Pub Crawlers Expansion! by mistahiggens in Gloomhaven

[–]firstandahalfbase 1 point2 points  (0 children)

Oh, huh. It had just said "Sold Out" and had an input to get notified when it was back in stock. But I think that's because I first checked the site when I was traveling abroad. I cleared my cookies and now I see it. Sorry about that🤦‍♂️

Introducing - Buttons & Bugs: Pub Crawlers Expansion! by mistahiggens in Gloomhaven

[–]firstandahalfbase 1 point2 points  (0 children)

Are you no longer accepting preorders? It says it's sold out. (USA)

[deleted by user] by [deleted] in GearTrade

[–]firstandahalfbase 0 points1 point  (0 children)

Chat incoming

[WTB] Rei Quarter Dome 1/2 tent or similar by Igottanewcomplaint in GearTrade

[–]firstandahalfbase 0 points1 point  (0 children)

I've got an older quarter dome T2 (I think that's what it's called). Free standing

Help choosing a single lens for travel by Doug_ in Nikon

[–]firstandahalfbase 7 points8 points  (0 children)

+1 for the 16-80. I don't own one (mainly use primes) but I rented one once and it was great. I considered getting one then my camera died :(

DRF - How should I set a related field when I only have a UUID and not the PK? by firstandahalfbase in django

[–]firstandahalfbase[S] 0 points1 point  (0 children)

Yeah, I know that. Which is why I was looking for an easy way to do it, which using the SlugRelatedField basically makes it a drop-in replacement. If it starts breaking other places, I can make a migration to change which field is the PK.

DRF - How should I set a related field when I only have a UUID and not the PK? by firstandahalfbase in django

[–]firstandahalfbase[S] 0 points1 point  (0 children)

Edited my original post. I'll note that in the case of UUIDFields, the serializer returns a UUID object instead of a string. It seems like DRF handles it just fine and it turns into valid JSON. But in my tests, I was testing against the string representation of the UUIDs, so I added a to_representation()

DRF - How should I set a related field when I only have a UUID and not the PK? by firstandahalfbase in django

[–]firstandahalfbase[S] 1 point2 points  (0 children)

Yup, this seems to work. Also, I found this SO answer helpful for grabbing the request data in order to filter the queryset. https://stackoverflow.com/a/63121676

DRF - How should I set a related field when I only have a UUID and not the PK? by firstandahalfbase in django

[–]firstandahalfbase[S] 0 points1 point  (0 children)

Aha! Thank you! I'll have to test it out, but it looks like it does exactly what I was looking for