Skip to content

Commit

Permalink
fix mission link display on contact graph
Browse files Browse the repository at this point in the history
  • Loading branch information
digitalfox committed Oct 19, 2024
1 parent 69cab8c commit e808864
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
3 changes: 1 addition & 2 deletions crm/models.py
Original file line number Diff line number Diff line change
Expand Up @@ -233,7 +233,7 @@ def relationData(self):
for missionContact in self.missioncontact_set.all():
for mission in missionContact.mission_set.all():
missionNode = GNode("mission-%s" % mission.id, """<i class="bi bi-gear"></i>
<span class='graph-tooltip' title='%s'><a href='%s'>&nbsp;%s&nbsp;</a></span>""" % (mission.short_name(),
<span class='graph-tooltip' title='%s'><a href='%s'>%s&nbsp;</a></span>""" % (mission.short_name(),
mission.get_absolute_url(),
mission.mission_id()))
nodes.add(missionNode)
Expand Down Expand Up @@ -488,7 +488,6 @@ def __str__(self):
def get_absolute_url(self):
return reverse("crm:contact_detail", args=[self.contact.id, ])


class Meta:
ordering = ["company", "contact"]
verbose_name = _("Mission contact")
Expand Down
1 change: 1 addition & 0 deletions crm/views.py
Original file line number Diff line number Diff line change
Expand Up @@ -123,6 +123,7 @@ class BusinessBrokerCreate(PydiciNonPublicdMixin, FeatureContactsWriteMixin, Cre
def get_success_url(self):
return reverse_lazy("crm:businessbroker_list")


class BusinessBrokerUpdate(PydiciNonPublicdMixin, FeatureContactsWriteMixin, UpdateView):
model = BusinessBroker
template_name = "core/form.html"
Expand Down

0 comments on commit e808864

Please sign in to comment.