In the MusicalWork model, there is an attribute:
sections : models.fields.related_descriptors.ReverseManyToOneDescriptor References to Sections that are part of this MusicalWork
However, I tested this with the upload form; if a user selects a MusicalWork work and I print work.sections, I get: database.Section.None. If I print from the other side of the relationship, Section.objects.filter(work=work), it prints a list of sections.
When the sample data is added, not all relationships are established properly.
Test other attributes
Update data adder to account for incomplete/one-sided relationships
A data adder that takes in any folder of works and metadata is issue #414, this issue is just to make sure the new adder does not have the same mistakes as the original one.
In the MusicalWork model, there is an attribute:
sections : models.fields.related_descriptors.ReverseManyToOneDescriptor References to Sections that are part of this MusicalWork
However, I tested this with the upload form; if a user selects a MusicalWorkwork
and I printwork.sections
, I get:database.Section.None
. If I print from the other side of the relationship,Section.objects.filter(work=work)
, it prints a list of sections. When the sample data is added, not all relationships are established properly.