Populated models with instances and implemented widget_calendar views.py for...

Populated models with instances and implemented widget_calendar views.py for outputing model instances
parent d7060978
# Generated by Django 4.1.6 on 2023-03-04 17:46
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
('widget_calendar', '0001_initial'),
]
operations = [
migrations.AlterField(
model_name='event',
name='target_datetime',
field=models.CharField(max_length=50),
),
]
<p>Widget's Calendar of Activities<br></p>
<ul>
{% for event in events %}
<p>
Date and Time: {{ event.target_datetime }}<br>
Activity: {{ event.activity }}<br>
Estimated Hours: {{ event.estimated_hours }}<br>
Course/Section: {{ event.course }}<br>
Mode: {{ event.location.mode }}<br>
Venue: {{ event.location.venue }}<br>
</p>
{% endfor %}
</ul>
\ No newline at end of file
<p>Widget's Calendar of Activities<br><br></p>
{% for event in events %}
<p>
Date and Time: {{ event.target_datetime }}<br>
Activity: {{ event.activity }}<br>
Estimated Hours: {{ event.estimated_hours }}<br>
Course/Section: {{ event.course }}<br>
Mode: {{ event.location.mode }}<br>
Venue: {{ event.location.venue }}
</p>
{% endfor %}
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