Commit 2f9f7780 authored by Gladys Forte's avatar Gladys Forte

update model

parent f05bb387
......@@ -360,10 +360,6 @@ class BaseHeader(models.Model):
blank=True,
null=True)
requested_to_target_date = models.DateTimeField(
blank=True,
null=True)
requested_to_priority = models.CharField(max_length=255)
description = models.CharField(
......@@ -486,6 +482,10 @@ class ChangeRequestTemplateHeader(BaseHeader):
on_delete=models.DO_NOTHING,
to_field='code',
related_name='created_by_department')
requested_to_target_date = models.CharField(
blank=True,
null=True)
archived_at = models.DateTimeField(
blank=True,
......@@ -587,7 +587,7 @@ class ChangeRequestTemplateAttachments(BaseAttachment):
archived_at = models.DateTimeField(
blank=True,
null=True)
class Meta:
db_table = 'change_request_template_attachments'
......@@ -688,6 +688,10 @@ class ChangeRequestFormHeader(BaseHeader):
requested_to_template_id = models.CharField(
max_length=255)
requested_to_target_date = models.DateTimeField(
blank=True,
null=True)
class Meta:
db_table = 'change_request_form_headers'
......
......@@ -24,7 +24,7 @@ urlpatterns = [
path('api-auth/', include('rest_framework.urls')),
path('api/v1/auth/', include('app.accesslayer.urls')),
path('api/v1/management/', include('app.applicationlayer.urls')),
path('api/v1/change-request/', include('app.applicationlayer.urls_cms')),
path('api/v1/change-request/', include('app.applicationlayer.cms.urls_cms')),
path('api/v1/master/', include('app.applicationlayer.master.urls')),
url(r'^chat/$', notifview.index, name='index'),
url(r'^chat/(?P<room_name>[^/]+)/$', notifview.room, name='room'),
......
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