Skip to content
Snippets Groups Projects
Commit 541366b8 authored by Martin Burchell's avatar Martin Burchell
Browse files

Updated comment to match method behaviour

parent abac7743
No related branches found
No related tags found
1 merge request!46Tagging frontend
......@@ -24,13 +24,13 @@ class Message(DataLayerModel):
network_provider = models.CharField(max_length=200, blank=True)
def apply_terms(self, terms):
""" Add or replace value of term.taxonomy for current Item
""" Add or replace values of term.taxonomy for current Item
If the Item has no term in the taxonomy
OR if the taxonomy.is_multiple just add it.
IF the taxonmy is optional (categories)
If the Item has a term in that taxonomy already,
replace it
For taxonomies that support multiple terms eg tags, do not remove any
existing terms.
IF the taxonomy is optional eg categories, and the Item has a term in
that taxonomy already, replace it
"""
# It bugs me that so much of the logic applying to taxonomies is here.
# This should really be built out with an explicity through model
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment