Browse Source

Fix stupid typos

master
Joshua Rubingh 6 months ago
parent
commit
6682a6cf14
  1. 4
      VRE/apps/university/models.py
  2. 2
      VRE/apps/vre_apps/views.py

4
VRE/apps/university/models.py

@ -55,7 +55,7 @@ class Faculty(MetaDataModel): @@ -55,7 +55,7 @@ class Faculty(MetaDataModel):
ordering = ['name']
name = models.CharField(_('Name'), max_length=200, help_text=_('The name of the faculty.'))
university = models.ForeignKey(University, verbose_name=University._meta.verbose_name, on_delete=models.CASCADE, help_text=_('To wich university belongs this faculty'))
university = models.ForeignKey(University, verbose_name=University._meta.verbose_name, on_delete=models.CASCADE, help_text=_('To which university belongs this faculty'))
def __str__(self):
"""str: Returns a readable string for the facutlty."""
@ -81,7 +81,7 @@ class StudyField(MetaDataModel): @@ -81,7 +81,7 @@ class StudyField(MetaDataModel):
ordering = ['name']
name = models.CharField(_('Name'), max_length=200, help_text=_('The name of the study field.'))
faculty = models.ForeignKey(Faculty, verbose_name=Faculty._meta.verbose_name, on_delete=models.CASCADE, help_text=_('To wich faculty belongs this study'))
faculty = models.ForeignKey(Faculty, verbose_name=Faculty._meta.verbose_name, on_delete=models.CASCADE, help_text=_('To which faculty belongs this study'))
def __str__(self):
"""str: Returns a readable string for the studyfield."""

2
VRE/apps/vre_apps/views.py

@ -118,7 +118,7 @@ class ListInstalledAppsAndCreateApp(AppTypeProfileSerializerMixin, ModelViewSet) @@ -118,7 +118,7 @@ class ListInstalledAppsAndCreateApp(AppTypeProfileSerializerMixin, ModelViewSet)
"""
# Check if the study does exists and that the requesting user is at least an active member
study = get_object_or_404(Study, pk=kwargs['study_d'], contributors__in=[request.user.researcher], studyrole__active=True)
study = get_object_or_404(Study, pk=kwargs['study_id'], contributors__in=[request.user.researcher], studyrole__active=True)
# Check if the app type is a valid one.
get_object_or_404(VRE_AppType, slug=kwargs['app_type'])

Loading…
Cancel
Save