diff --git a/projects/migrations/0009_project_is_archive.py b/projects/migrations/0009_project_is_archive.py new file mode 100644 index 0000000..7868920 --- /dev/null +++ b/projects/migrations/0009_project_is_archive.py @@ -0,0 +1,20 @@ +# -*- coding: utf-8 -*- +# Generated by Django 1.9.7 on 2016-08-16 13:58 +from __future__ import unicode_literals + +from django.db import migrations, models + + +class Migration(migrations.Migration): + + dependencies = [ + ('projects', '0008_auto_20160815_1900'), + ] + + operations = [ + migrations.AddField( + model_name='project', + name='is_archive', + field=models.BooleanField(default=False), + ), + ] diff --git a/projects/models.py b/projects/models.py index 2abce6c..cc7065b 100644 --- a/projects/models.py +++ b/projects/models.py @@ -93,6 +93,7 @@ class Project(models.Model): term_type = models.CharField(max_length=20, choices=TERMS, default='hour') text = models.TextField(blank=True) work_type = models.IntegerField(default=1, choices=WORK_TYPES) + is_archive = models.BooleanField(default=False) def __str__(self): return self.name diff --git a/users/templates/contractor_office.html b/users/templates/contractor_office.html index f780884..23b6f9d 100644 --- a/users/templates/contractor_office.html +++ b/users/templates/contractor_office.html @@ -7,46 +7,12 @@ {% block content %} {% include 'partials/header.html' %} -
Личный кабинет