Skip to content

Commit d22c3d4

Browse files
authored
Update DJANGO.md
1 parent b93f690 commit d22c3d4

1 file changed

Lines changed: 2 additions & 0 deletions

File tree

developers/DJANGO.md

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -220,3 +220,5 @@ Note: if you're confused about the reverse foreign key lookup, the [Django docs]
220220
>>> clinic.specialization [press tab to autocomplete]
221221
clinic.specializationpolicies_set( clinic.specializations(
222222
```
223+
224+
Note: an exception to this rule is when writing management commands. In that case, it's often expected that you are looping through all of the objects of a certain type across all clinics, often to batch update some attributes.

0 commit comments

Comments
 (0)