Commit 6b88b2bc authored by xaingling's avatar xaingling

remove django suit

parent c4c51784
......@@ -19,6 +19,5 @@ dependencies:
- uwsgi==2.0.18
- drf-yasg
- packaging
- django-suit
- git+https://github.com/mrts/django-admin-list-filter-dropdown.git
- git+ssh://git@gitlab.oceantrack.org/ceotr/app_common.git
\ No newline at end of file
......@@ -2,7 +2,7 @@ from django.forms import ModelForm
from django import forms
from django.db.models import Q
from suit.widgets import SuitSplitDateTimeWidget
from .models import (
Instrument,
......@@ -20,10 +20,7 @@ class InstrumentOnPlatformForm(ModelForm):
class Meta:
model = InstrumentOnPlatform
fields = '__all__'
widgets = {
'start_time': SuitSplitDateTimeWidget,
'end_time': SuitSplitDateTimeWidget
}
class SensorForm(ModelForm):
......
import os
from django.db.models import F
from django.forms import ModelForm
from suit.widgets import SuitSplitDateTimeWidget
from django.forms.widgets import ClearableFileInput
from cgi import escape
......@@ -20,10 +19,6 @@ class PlatformDeploymentForm(ModelForm):
class Meta:
fields = '__all__'
widgets = {
'start_time': SuitSplitDateTimeWidget,
'end_time': SuitSplitDateTimeWidget
}
class ImageFileInput(ClearableFileInput):
......@@ -67,9 +62,6 @@ class PlatformForm(ModelForm):
class Meta:
model = Platform
fields = '__all__'
widgets = {
'purchase_date': SuitSplitDateTimeWidget
}
class PlatformDeploymentCommentBoxForm(ModelForm):
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment