diff --git a/assets/js/EditProfile.jsx b/assets/js/EditProfile.jsx index 198955f553727cceff37cea6bab9580191782ada..795b7837065b5ac156607751d1d8fde4e8e938cf 100644 --- a/assets/js/EditProfile.jsx +++ b/assets/js/EditProfile.jsx @@ -14,7 +14,7 @@ import Storage from './lib/Storage'; import ModalAlert from './components/ModalAlert'; import Dumper from './lib/Dumper'; -export default class ProfilePage extends React.Component { +export default class EditProfile extends React.Component { static propTypes = { route: PropTypes.object.isRequired, params: PropTypes.object.isRequired, diff --git a/assets/js/ProfilePage.jsx b/assets/js/ProfilePage.jsx index 20eb9d5e512c33a5036d30f0cea8f0115eae91bb..c976e353aef3539d00394e176f9a1e04fb02857d 100755 --- a/assets/js/ProfilePage.jsx +++ b/assets/js/ProfilePage.jsx @@ -245,7 +245,9 @@ export default class ProfilePage extends React.Component { 'Pastikan link github yang anda tulis benar.(Berpola : https://github.com/<username>', ); } else if (!this.gitlabURL_is_valid()) { - alert("Link gitlab tidak sesuai. Contoh : https://gitlab.com/<your-username>"); + this.modalAlert.open( + "Link gitlab tidak sesuai. Contoh : https://gitlab.com/<your-username>", + ); return; } { diff --git a/assets/js/VacancyPage.jsx b/assets/js/VacancyPage.jsx index 9a412a55b7f70d673dcd21792ec124da0206233d..96fee2dc32709926b567b2147494356aea83caad 100755 --- a/assets/js/VacancyPage.jsx +++ b/assets/js/VacancyPage.jsx @@ -7,7 +7,6 @@ import Pane from './components/Pane'; import VacancyList from './components/VacancyList'; import Pagination from './components/Pagination'; import Storage from './lib/Storage'; -import InfoLowonganModal from './components/InfoLowonganModal'; export default class VacancyPage extends React.Component { static propTypes = { diff --git a/assets/js/components/InfoLowonganModal.jsx b/assets/js/components/InfoLowonganModal.jsx index 97d92105ededa1afc7ef21ae45764cd4811d630c..cd568a1d9b667a55c6b03b35502b2e8bd0935557 100644 --- a/assets/js/components/InfoLowonganModal.jsx +++ b/assets/js/components/InfoLowonganModal.jsx @@ -3,7 +3,7 @@ import PropTypes from 'prop-types'; import { Modal, Button } from 'semantic-ui-react'; import ModalAlert from './../components/ModalAlert'; -export default class InfoModal extends React.Component { +export default class InfoLowonganModal extends React.Component { static propTypes = { data: PropTypes.object.isRequired, active: PropTypes.bool.isRequired, diff --git a/core/models/__init__.py b/core/models/__init__.py index 66259a6b5c96b0b5cd96a3d463ca8a35ebb97bd7..971218a92d9916793ec13e2cd3ab3b64ee5fc3aa 100755 --- a/core/models/__init__.py +++ b/core/models/__init__.py @@ -6,4 +6,3 @@ from core.models.vacancies import Vacancy from core.models.vacancies import Application from core.models.vacancies import VacancyMilestone from core.models.recommendations import Recommendation -# from core.models.feedbacks import Feedback diff --git a/core/models/vacancies.py b/core/models/vacancies.py index 6a9ce69260c89a4f3da6fc8c6d42445753ec364c..6c28602fb1e054a6b6377b85e0434dc613fafb74 100755 --- a/core/models/vacancies.py +++ b/core/models/vacancies.py @@ -1,7 +1,6 @@ from django.db import models from django.core.exceptions import ValidationError from core.models.accounts import Company, Student -import datetime from django.utils import timezone diff --git a/core/views/vacancies.py b/core/views/vacancies.py index 511352d56c981c86fc82ff6348bfffe642c8d952..6c967d6efcf72d53086e9c3b37065a16cea48c3b 100755 --- a/core/views/vacancies.py +++ b/core/views/vacancies.py @@ -338,9 +338,9 @@ class StudentApplicationViewSet(viewsets.GenericViewSet): vacancy = get_object_or_404(Vacancy.objects.all(), pk=pk) student = get_object_or_404(Student.objects.all(), pk=student_id) application = get_object_or_404(Application.objects.all(), student=student, vacancy=vacancy) - reasonRejected = get_object_or_404(ReasonRejected.objects.all(), application=application) - print(reasonRejected.reason) - return Response({"reason": reasonRejected.reason}, status=status.HTTP_200_OK) + reason_rejected = get_object_or_404(ReasonRejected.objects.all(), application=application) + print(reason_rejected.reason) + return Response({"reason": reason_rejected.reason}, status=status.HTTP_200_OK) class StatusError(Exception):