duplicate information (e.g. you can have two bottles of acetic
acid).
"""
- cas = _models.ManyToManyField(CASNumber, blank=True, null=True)
+ cas = _models.ManyToManyField(
+ CASNumber, blank=True, null=True, related_name='chemicals')
msds = _models.FileField(
'Material safety data sheet', upload_to=_util.chemical_upload_to,
blank=True, null=True)
'NFPA fire rating', blank=True, null=True)
reactivity = _models.PositiveIntegerField(
'NFPA reactivity rating', blank=True, null=True)
- special = _models.ManyToManyField(NFPASpecial, blank=True, null=True)
+ special = _models.ManyToManyField(
+ NFPASpecial, blank=True, null=True, related_name='chemicals')
mutagen = _models.NullBooleanField()
carcinogen = _models.NullBooleanField()
teratogen = _models.NullBooleanField()