init views and add season attribute to internship
This commit is contained in:
parent
2d18135a4a
commit
4e85772557
|
@ -3,5 +3,6 @@ from django.urls import path, include
|
|||
|
||||
urlpatterns = [
|
||||
path('admin/', admin.site.urls),
|
||||
path('api/', include('APIs.urls'))
|
||||
path('api/', include('APIs.urls')),
|
||||
path('internapi/', include('internAPIs.urls'))
|
||||
]
|
||||
|
|
|
@ -0,0 +1,7 @@
|
|||
from django.urls import path
|
||||
|
||||
from . import companyViews
|
||||
|
||||
urlpatterns = [
|
||||
path('addInternship/', companyViews.addInternship, name="Add Internship"),
|
||||
]
|
|
@ -0,0 +1,4 @@
|
|||
|
||||
|
||||
def addInternship(request):
|
||||
pass
|
|
@ -47,10 +47,10 @@ TIERS = [
|
|||
]
|
||||
|
||||
SEASON_CHOICES = (
|
||||
('summer', 'Summer'),
|
||||
('winter', 'Winter'),
|
||||
('monsoon', 'Monsoon'),
|
||||
('spring', 'Spring'),
|
||||
['summer', 'Summer'],
|
||||
['winter', 'Winter'],
|
||||
['autumn', 'Autumn'],
|
||||
['spring', 'Spring'],
|
||||
)
|
||||
|
||||
DEGREE_CHOICES = [
|
||||
|
|
|
@ -48,6 +48,7 @@ class Internship(models.Model):
|
|||
description = models.CharField(blank=False, max_length=INF_TEXTAREA_MAX_CHARACTER_COUNT, default=None, null=True)
|
||||
interning_period_from = models.DateField(blank=False, default=None, null=True)
|
||||
interning_period_to = models.DateField(blank=False, default=None, null=True)
|
||||
season = models.CharField(blank=False, max_length=10, choices=SEASON_CHOICES, default=None)
|
||||
is_work_from_home = models.BooleanField(blank=False, default=False)
|
||||
sophomore_eligible = models.BooleanField(blank=False, default=False)
|
||||
tentative_no_of_offers = models.IntegerField(blank=False, default=None, null=True)
|
||||
|
|
|
@ -0,0 +1,7 @@
|
|||
from django.urls import path, include
|
||||
|
||||
from . import companyUrls
|
||||
|
||||
urlpatterns = [
|
||||
path('company/', include(companyUrls)),
|
||||
]
|
Loading…
Reference in New Issue