add missing template and migrations files
This commit is contained in:
parent
7325feec01
commit
afe28f2f4f
3 changed files with 74 additions and 0 deletions
24
issue/migrations/0002_auto_20140803_0351.py
Normal file
24
issue/migrations/0002_auto_20140803_0351.py
Normal file
|
@ -0,0 +1,24 @@
|
||||||
|
# -*- coding: utf-8 -*-
|
||||||
|
from __future__ import unicode_literals
|
||||||
|
|
||||||
|
from django.db import models, migrations
|
||||||
|
|
||||||
|
|
||||||
|
class Migration(migrations.Migration):
|
||||||
|
|
||||||
|
dependencies = [
|
||||||
|
('issue', '0001_initial'),
|
||||||
|
]
|
||||||
|
|
||||||
|
operations = [
|
||||||
|
migrations.AddField(
|
||||||
|
model_name='issue',
|
||||||
|
name='milestone',
|
||||||
|
field=models.ForeignKey(to='issue.Milestone', blank=True, null=True),
|
||||||
|
preserve_default=True,
|
||||||
|
),
|
||||||
|
migrations.RemoveField(
|
||||||
|
model_name='milestone',
|
||||||
|
name='progression',
|
||||||
|
),
|
||||||
|
]
|
25
issue/migrations/0003_auto_20140803_0651.py
Normal file
25
issue/migrations/0003_auto_20140803_0651.py
Normal file
|
@ -0,0 +1,25 @@
|
||||||
|
# -*- coding: utf-8 -*-
|
||||||
|
from __future__ import unicode_literals
|
||||||
|
|
||||||
|
from django.db import models, migrations
|
||||||
|
import django.core.validators
|
||||||
|
|
||||||
|
|
||||||
|
class Migration(migrations.Migration):
|
||||||
|
|
||||||
|
dependencies = [
|
||||||
|
('issue', '0002_auto_20140803_0351'),
|
||||||
|
]
|
||||||
|
|
||||||
|
operations = [
|
||||||
|
migrations.AlterField(
|
||||||
|
model_name='milestone',
|
||||||
|
name='due_date',
|
||||||
|
field=models.DateTimeField(blank=True, null=True),
|
||||||
|
),
|
||||||
|
migrations.AlterField(
|
||||||
|
model_name='milestone',
|
||||||
|
name='name',
|
||||||
|
field=models.CharField(validators=[django.core.validators.RegexValidator(regex='^[a-z0-9_.-]+$', message='Please enter only lowercase characters, number, dot, underscores or hyphens.')], max_length=32),
|
||||||
|
),
|
||||||
|
]
|
25
issue/templates/issue/milestone_edit.html
Normal file
25
issue/templates/issue/milestone_edit.html
Normal file
|
@ -0,0 +1,25 @@
|
||||||
|
{% extends 'issue/project.html' %}
|
||||||
|
|
||||||
|
{% load crispy_forms_tags %}
|
||||||
|
|
||||||
|
{% block milestonetab %} class="active"{% endblock %}
|
||||||
|
|
||||||
|
{% block media %}
|
||||||
|
{{ form.media }}
|
||||||
|
{% endblock %}
|
||||||
|
|
||||||
|
{% block content %}
|
||||||
|
|
||||||
|
<div class="row">
|
||||||
|
<div class="col-md-offset-4 col-md-4">
|
||||||
|
|
||||||
|
<form action="" method="post" role="form">
|
||||||
|
{{ form|crispy }}
|
||||||
|
{% csrf_token %}
|
||||||
|
<button type="submit" class="btn btn-primary">Submit</button>
|
||||||
|
</form>
|
||||||
|
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
|
||||||
|
{% endblock %}
|
Loading…
Add table
Add a link
Reference in a new issue