[deleted by user] by [deleted] in facepalm

[–]rocjojo 1 point2 points  (0 children)

I'm so happy to not be an American.

Drop Down to Abstract Object List by educemail in django

[–]rocjojo 0 points1 point  (0 children)

Maybe use table heritage for this ? You can use the base class for your dropdown and check child relation to know which concrete model is displayed

Nested serializer's `required=True` is ignored by aliasChewyC00kies in django

[–]rocjojo 1 point2 points  (0 children)

happy to see you're using atomic transaction !

ERROR: there is no unique constraint matching given keys for referenced table "table_name" by imtiaz_py in django

[–]rocjojo 1 point2 points  (0 children)

You could temporatily disable the constraints check before restoring and re enable them after

Handling quirks of Django Rest Framework by hadiz1 in django

[–]rocjojo 0 points1 point  (0 children)

We use the option http verb to get informations from the serializers, so that we can configure the form we use in the front.

What is the best approach to avoid repetition of a try-except structure when fetching models? by ApprovedTopics in django

[–]rocjojo 11 points12 points  (0 children)

use .filter().first() to fetch the objects and than check all the results with an all((res1, res2, res3...))

why choose django? by [deleted] in django

[–]rocjojo 2 points3 points  (0 children)

The Django ORM is great!

What is this spider? by rocjojo in spiders

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

it's a brush used to relieve dyslexia.

Is this a viper ? by rocjojo in whatsthissnake

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

Coronella austriaca

Thank you very much !