Skip to content

Commit

Permalink
feat(information_management): Add method get_url to model kb article
Browse files Browse the repository at this point in the history
set to RTN none as not required.

ref: #331 #426 #427 #428 #429 #430 #431 #432
  • Loading branch information
jon-nfc committed Dec 21, 2024
1 parent 52553b4 commit d31eba4
Showing 1 changed file with 9 additions and 0 deletions.
9 changes: 9 additions & 0 deletions app/assistance/models/model_knowledge_base_article.py
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,8 @@
from django.db import models
from django.forms import ValidationError

from rest_framework.reverse import reverse

from access.fields import *
from access.models import TenancyObject

Expand Down Expand Up @@ -103,6 +105,7 @@ class Meta:
choices = all_models,
help_text = 'Model type to link to article article',
max_length = 50,
null = False,
unique = False,
verbose_name = 'Model Type',
)
Expand All @@ -111,6 +114,7 @@ class Meta:
model_pk = models.IntegerField(
blank = False,
help_text = 'PK of the model the article is linked to',
null = False,
unique = False,
verbose_name = 'Model Primary Key'
)
Expand Down Expand Up @@ -150,3 +154,8 @@ def clean(self):

self.organization = item.organization


def get_url( self, request = None ):
""" Function not required nor-used"""

return None

0 comments on commit d31eba4

Please sign in to comment.