summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--app/trading/migrations/0009_luxtrade_is_wanderer.py18
-rw-r--r--app/trading/templates/trading/list.html6
2 files changed, 23 insertions, 1 deletions
diff --git a/app/trading/migrations/0009_luxtrade_is_wanderer.py b/app/trading/migrations/0009_luxtrade_is_wanderer.py
new file mode 100644
index 0000000..a2b49e1
--- /dev/null
+++ b/app/trading/migrations/0009_luxtrade_is_wanderer.py
@@ -0,0 +1,18 @@
+# Generated by Django 3.2.4 on 2021-07-15 15:49
+
+from django.db import migrations, models
+
+
+class Migration(migrations.Migration):
+
+ dependencies = [
+ ('trading', '0008_luxtrade_notes'),
+ ]
+
+ operations = [
+ migrations.AddField(
+ model_name='luxtrade',
+ name='is_wanderer',
+ field=models.BooleanField(default=True),
+ ),
+ ]
diff --git a/app/trading/templates/trading/list.html b/app/trading/templates/trading/list.html
index ef496cd..a0f8a78 100644
--- a/app/trading/templates/trading/list.html
+++ b/app/trading/templates/trading/list.html
@@ -16,6 +16,7 @@
<th>% Goal</th>
<th>Risk/Reward</th>
<th>Price Calc</th>
+ <th>Notes</th>
</tr>
</thead>
{% for object in open_trades %}
@@ -32,6 +33,7 @@
<td>{{object.goal_percent}}</td>
<td>{{object.risk_reward}}</td>
<td><input class="close_price_calc" id="id_close_price_{{forloop.counter}}"> <span id=profit"></span></td>
+ <td class="notes">{{object.notes}}</td>
</tr>
{% endfor %}
</table>
@@ -51,6 +53,7 @@
<th>$ Goal</th>
<th>% Goal</th>
<th>Risk/Reward</th>
+ <th>Notes</th>
</tr>
</thead>
{% for object in watch_trades %}
@@ -67,6 +70,7 @@
<td>{{object.goal_percent}}</td>
<td>{{object.risk_reward}}</td>
<td><input id="id_close_price"> <span id=profit"></span></td>
+ <td class="notes">{{object.notes}}</td>
</tr>
{% endfor %}
</table>
@@ -103,7 +107,7 @@
<td>${{object.goal_dollars}}</td>
<td>${{object.realized_dollars}}</td>
<td>{{object.realized_percent}}</td>
- <td>{{object.notes}}</td>
+ <td class="notes">{{object.notes}}</td>
</tr>
{% endfor %}
</table>