SciPost Code Repository

Skip to content
Snippets Groups Projects
Commit 0626f2a5 authored by George Katsikas's avatar George Katsikas :goat:
Browse files

add `django-types` to the requirements

monkeypatch relational models to allow generics
fix #109, as it is the beginnings of adding types
parent 29da95d8
No related branches found
No related tags found
No related merge requests found
......@@ -28,6 +28,11 @@ django-webpack-loader==1.0.0 # 2021-05-22, implicitly loads vendor bundles
django-maintenancemode-2 # 2021-07-15
djangorestframework-csv # 2020-10-13
# Django types
django-types==0.19.1
django-types-ext==0.4.4
# Plotting
plotly==4.6.0 # 2020-05-05
matplotlib==3.6.3 # 2023-02-05
......
......@@ -21,6 +21,11 @@ from django.utils.translation import gettext_lazy as _
from django.core.exceptions import ImproperlyConfigured
from django.contrib.messages import constants as message_constants
# Enable Django-type's stub subscripting of models
import django_stubs_ext
django_stubs_ext.monkeypatch()
# Build paths inside the project
BASE_DIR = os.path.dirname(os.path.dirname(os.path.dirname(os.path.abspath(__file__))))
PROJECT_ROOT = os.path.dirname(BASE_DIR)
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment