<reponame>xUndero/noc
# -*- coding: utf-8 -*-
# ---------------------------------------------------------------------
# KBGlobalBookmark
# ---------------------------------------------------------------------
# Copyright (C) 2007-2019 The NOC Project
# See LICENSE for details
# ---------------------------------------------------------------------

# Third-party modules
import six
from django.db import models

# NOC modules
from noc.core.model.base import NOCModel
from noc.kb.models.kbentry import KBEntry


@six.python_2_unicode_compatible
class KBGlobalBookmark(NOCModel):
    """
    Global Bookmarks
    @todo: Replace with boolean flag in KBEntry
    """

    class Meta(object):
        verbose_name = "KB Global Bookmark"
        verbose_name_plural = "KB Global Bookmarks"
        app_label = "kb"
        db_table = "kb_kbglobalbookmark"

    kb_entry = models.ForeignKey(
        KBEntry, verbose_name="KBEntry", unique=True, on_delete=models.CASCADE
    )

    def __str__(self):
        return unicode(self.kb_entry)

# -*- coding: utf-8 -*-
# ---------------------------------------------------------------------
# KBGlobalBookmark
# ---------------------------------------------------------------------
# Copyright (C) 2007-2019 The NOC Project
# See LICENSE for details
# ---------------------------------------------------------------------

# Third-party modules
import six
from django.db import models

# NOC modules
from noc.core.model.base import NOCModel
from noc.kb.models.kbentry import KBEntry


@six.python_2_unicode_compatible
class KBGlobalBookmark(NOCModel):
    """
    Global Bookmarks
    @todo: Replace with boolean flag in KBEntry
    """

    class Meta(object):
        verbose_name = "KB Global Bookmark"
        verbose_name_plural = "KB Global Bookmarks"
        app_label = "kb"
        db_table = "kb_kbglobalbookmark"

    kb_entry = models.ForeignKey(
        KBEntry, verbose_name="KBEntry", unique=True, on_delete=models.CASCADE
    )

    def __str__(self):
        return unicode(self.kb_entry)
# -*- coding: utf-8 -*- # --------------------------------------------------------------------- # KBGlobalBookmark # --------------------------------------------------------------------- # Copyright (C) 2007-2019 The NOC Project # See LICENSE for details # --------------------------------------------------------------------- # Third-party modules # NOC modules Global Bookmarks     @todo: Replace with boolean flag in KBEntry