Skip to content

Commit

Permalink
removed user link field for vocabs
Browse files Browse the repository at this point in the history
  • Loading branch information
csae8092 committed Nov 16, 2023
1 parent 00ecf80 commit 5584e7d
Showing 1 changed file with 0 additions and 10 deletions.
10 changes: 0 additions & 10 deletions apis_core/apis_vocabularies/models.py
Original file line number Diff line number Diff line change
Expand Up @@ -3,11 +3,8 @@
import sys
import unicodedata

from django.contrib.auth.models import User
from django.db import models
from django.utils.functional import cached_property
from django.conf import settings
from django.contrib.contenttypes.fields import GenericRelation


class VocabNames(models.Model):
Expand Down Expand Up @@ -38,17 +35,10 @@ class VocabsBaseClass(models.Model):
on_delete=models.CASCADE
)
status = models.CharField(max_length=4, choices=choices_status, default='can')
userAdded = models.ForeignKey(
User, blank=True, null=True,
on_delete=models.SET_NULL
)
vocab_name = models.ForeignKey(
VocabNames, blank=True, null=True,
on_delete=models.SET_NULL
)
if 'apis_highlighter' in settings.INSTALLED_APPS:
from apis_highlighter.models import Annotation
annotation_set = GenericRelation(Annotation)

def __str__(self):
return self.label
Expand Down

0 comments on commit 5584e7d

Please sign in to comment.