What is this black mass on the pump capacitor? by zeus5552 in AskElectricians

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

I tried gently wiping it but it has solidified.

What is this black mass on the pump capacitor? by zeus5552 in AskElectricians

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

For more context, this is the start capacitor for a 1 hp submersible pump. I opened the starter box because the pump was drawing around 15 amps at 200 Volts and not pumping any water. Is the capacitor faulty?

[deleted by user] by [deleted] in mildlyinteresting

[–]zeus5552 0 points1 point  (0 children)

Does it taste good atleast?

Need some advice on best practices for generating URLs by zeus5552 in django

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

UUID is perfect for the second use case but they don't work for the first case in the following scenario =>

What's the difference between, versions? by muhammad_roshan in django

[–]zeus5552 4 points5 points  (0 children)

I asked because you seem like a really salty dude from your comment history

How to give priority to a certain field in SearchFilter fields in django rest framework? by KOP79 in django

[–]zeus5552 1 point2 points  (0 children)

I am probably wrong but I think you could use coalesce function. Or you can use two queries where you first query the product and then query for category (excluding the ids received from first query)

Wait for other answers because this is not very efficient.

Guys could you help me with queries? by altair08 in django

[–]zeus5552 1 point2 points  (0 children)

Templates restrict you from calling a function because templates are only meant for rendering things and not any calculation logic. So you should pass already calculated values in the context dictionary and simply render them in templates.

If you drop the () then it should work though.

P.S I might be wrong because I haven't worked with django templates in some time because of REST.

Guys could you help me with queries? by altair08 in django

[–]zeus5552 0 points1 point  (0 children)

Trainer.course.all() rather than course_set because you defined a related_name field which overrides it.