refactor: move themes to admin question

Resolves #95
This commit is contained in:
James Graham
2021-03-10 09:36:21 +00:00
parent 5d1caf98ba
commit e3e8a2ada4
6 changed files with 39 additions and 33 deletions

View File

@@ -18,7 +18,6 @@ logger = logging.getLogger(__name__) # pylint: disable=invalid-name
__all__ = [
'User',
'Theme',
'PersonQuestion',
'PersonQuestionChoice',
'Person',
@@ -66,16 +65,6 @@ class User(AbstractUser):
self.username)
class Theme(models.Model):
"""
Project theme within which a :class:`Person` works.
"""
name = models.CharField(max_length=255, blank=False, null=False)
def __str__(self) -> str:
return self.name
class PersonQuestion(Question):
"""Question which may be asked about a person."""
@@ -180,9 +169,6 @@ class PersonAnswerSet(AnswerSet):
blank=True,
null=False)
#: Project themes within this person works
themes = models.ManyToManyField(Theme, related_name='people', blank=True)
#: Latitude for displaying location on a map
latitude = models.FloatField(blank=True, null=True)