Commit 7f4bd1d6 authored by Raul Jarod Conanan's avatar Raul Jarod Conanan

Merge branch 'dev' into 'master'

Dev

See merge request !25
parents 88b06797 0df29e8b
# Generated by Django 3.2 on 2023-05-13 20:25
from django.db import migrations, models
import django.db.models.deletion
class Migration(migrations.Migration):
initial = True
dependencies = [
]
operations = [
migrations.CreateModel(
name='Department',
fields=[
('id', models.BigAutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')),
('dept_name', models.CharField(max_length=50)),
('home_unit', models.CharField(max_length=100)),
],
),
migrations.CreateModel(
name='WidgetUser',
fields=[
('id', models.BigAutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')),
('first_name', models.CharField(max_length=50)),
('middle_name', models.CharField(max_length=50)),
('last_name', models.CharField(max_length=50)),
('department', models.ForeignKey(on_delete=django.db.models.deletion.CASCADE, related_name='department', to='Dashboard.department')),
],
),
]
{% extends 'base.html' %}
{% block title %} Widget v2 {% endblock %}
{% block header %} Welcome to Widget! {% endblock %}
{% block content %}
<div id = "object_container">
<h2>
Widget Users:
</h2>
<ul id = "object_list">
{% for user in users %}
<a href="/widgetusers/{{ user.pk }}/details/" class="item">{{ user.last_name }}, {{ user.first_name }}</a><br>
{% endfor %}
<br>
<li>
<a href="/widgetusers/add/" class="item">Add Widget User</a>
</li>
</ul>
</div>
{% endblock %}
{% block navbar %}
<div id = "navbar">
<a href="/announcements/">Announcement Board</a>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
<a href="/forum/">Forum</a>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
<a href = "/assignments/">Assignments</a>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
<a href = "/calendar/">Calendar</a>
</div>
{% endblock %}
\ No newline at end of file
{% extends 'base.html' %}
{% block title %} Add Widget User {% endblock %}
{% block header %} Add a new Widget user: {% endblock %}
{% block content %}
<form action="" method=POST>
{% csrf_token %}
{{ form.as_p }}
<input type="submit" value="Add Widget User">
</form>
{% endblock %}
{% extends 'base.html' %}
{% block title %} {{ object.last_name }}, {{ object.first_name }} {% endblock %}
{% block header %} {{ object.first_name }} {{ object.middle_name }} {{ object.last_name }} {% endblock %}
{% block content %}
<p>
{{ object.department.dept_name }} <br>
{{ object.department.home_unit }} <br>
</p>
<li>
<a href = "/widgetusers/{{ object.pk }}/edit/" class="item">Edit Widget User</a>
</li>
{% endblock %}
{% extends 'base.html' %}
{% block title %} Edit Widget User {% endblock %}
{% block header %} Edit Widget User: {% endblock %}
{% block content %}
<form action="" method=POST>
{% csrf_token %}
{{ form.as_p }}
<input type="submit" value="Save Changes to Widget User">
</form>
{% endblock %}
......@@ -3,13 +3,10 @@ from .views import (Dashboard_list_view, WidgetUserDetailView,
WidgetUserAddView, WidgetUserUpdateView)
urlpatterns = [
path('Dashboard/', Dashboard_list_view, name='Dashboard_list_view'),
path('Widgetusers/<int:pk>/details', WidgetUserDetailView.as_view(),
name='widgetuser-detail'),
path('Widgetusers/add/', WidgetUserAddView.as_view(),
name='widgetuser-add'),
path('Widgetusers/<int:pk>/edit/', WidgetUserUpdateView.as_view(),
name='widgetuser-edit')
path('dashboard/', Dashboard_list_view, name='Dashboard_list_view'),
path('widgetusers/<int:pk>/details/', WidgetUserDetailView.as_view(), name='widgetuser-detail'),
path('widgetusers/add/', WidgetUserAddView.as_view(), name='widgetuser-add'),
path('widgetusers/<int:pk>/edit/', WidgetUserUpdateView.as_view(), name='widgetuser-edit')
]
app_name = "Dashboard"
from django.shortcuts import render
from .models import WidgetUser
from django.http import HttpResponse
from django.views import generic
......@@ -5,34 +6,18 @@ from django.urls import reverse
def Dashboard_list_view(request):
html_string_1 = '<html lang="en"><head><meta charset="UTF-8">' \
'<h1>Welcome to Widget</h1>' \
'<h2>WIDGET USERS</h2></head><ul>'
html_string_2 = ''
for wu in WidgetUser.objects.all():
number = str(wu.pk)
href = '<a href="/Widgetusers/' + number + '/details">'
html_string_2 += '<li>' + href + '{}, {} {}: {}, {}' .format(
wu.last_name,
wu.first_name,
wu.middle_name,
wu.department.dept_name,
wu.department.home_unit
)
html_string_2 += '</ul></li>'
html_string_3 = '<a href="/Widgetusers/add"><button value="click here" > Add Widget User</button></a><br><br>'
html_string_3 += '<a href="/announcements/">Announcement Board</a><br>'
html_string_3 += '<a href="/forum/">Forum</a><br>'
html_string_3 += '<a href="/assignments">Assignment</a><br>'
html_string_3 += '<a href="/widget_Calendar/">Calendar</a><br>'
html_string_final = html_string_1 + html_string_2 + html_string_3 + '</html>'
return HttpResponse(html_string_final)
users = WidgetUser.objects.all()
context = {
'users': users
}
return render(request, 'dashboard/dashboard.html', context)
class WidgetUserDetailView(generic.DetailView):
model = WidgetUser
template_name = 'widgetuser-details.html'
template_name = 'dashboard/widgetuser-details.html'
queryset = WidgetUser.objects.all()
context_object_name = 'widgetuser-detail'
......@@ -40,7 +25,7 @@ class WidgetUserDetailView(generic.DetailView):
class WidgetUserAddView(generic.CreateView):
model = WidgetUser
fields = '__all__'
template_name = 'widgetuser-add.html'
template_name = 'dashboard/widgetuser-add.html'
def get_success_url(self):
return reverse('Dashboard:widgetuser-detail', kwargs={'pk': self.object.id},
......@@ -49,9 +34,9 @@ class WidgetUserAddView(generic.CreateView):
class WidgetUserUpdateView(generic.UpdateView):
model = WidgetUser
template_name = 'widgetuser-edit.html'
template_name = 'dashboard/widgetuser-edit.html'
fields = '__all__'
success_url = "Dashboard/"
success_url = "dashboard/"
def get_success_url(self):
return reverse('Dashboard:widgetuser-detail', kwargs={'pk': self.object.id},
......
# Generated by Django 3.2 on 2023-05-13 20:25
from django.db import migrations, models
import django.db.models.deletion
class Migration(migrations.Migration):
initial = True
dependencies = [
('Dashboard', '0001_initial'),
]
operations = [
migrations.CreateModel(
name='Announcement',
fields=[
('id', models.BigAutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')),
('title', models.TextField(blank=True, null=True)),
('body', models.TextField(blank=True, null=True)),
('pub_datetime', models.DateTimeField(null=True)),
('author', models.ForeignKey(null=True, on_delete=django.db.models.deletion.CASCADE, to='Dashboard.widgetuser')),
],
),
migrations.CreateModel(
name='Reaction',
fields=[
('id', models.BigAutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')),
('name', models.CharField(blank=True, default='Like', max_length=5, null=True)),
('tally', models.IntegerField(blank=True, default=0, null=True)),
('announcement', models.ForeignKey(null=True, on_delete=django.db.models.deletion.CASCADE, related_name='react', to='announcements.announcement')),
],
),
]
{% extends 'base.html' %}
{% load static %}
{% block content %}
{% block title %} Add Announcement {% endblock %}
{% block header %} Add a new announcement: {% endblock %}
<title>Add Announcement</title>
<h1>Add a new announcement:</h1>
{% block content %}
<form action="" method=POST>
{% csrf_token %}
{{ form.as_p }}
<input type="submit" value="Add Announcement">
</form>
{% endblock content %}
\ No newline at end of file
{% endblock %}
{% extends 'base.html' %}
{% load static %}
{% block content %}
{% block title %} {{ announce.title }} {% endblock %}
<title>{{ announce.title }}</title>
{% block header %} {{ announce.title }} {% endblock %}
<h1>{{ announce.title }}</h1>
{% block content %}
<h2>by {{ announce.author.first_name }} {{ announce.author.last_name }}</h2>
<p>{{ announce.pub_datetime|date:'m/d/Y, h:i A' }}</p>
<p>{{ announce.body }}</p>
<p>
{% for react in announce.react.all %}
{{ react.name }}: {{ react.tally }}<br>
{% endfor %}
</p>
<a href = "/announcements/{{ announce.pk }}/edit/"><button value="">Edit Announcement</button></a>
{% endblock content %}
\ No newline at end of file
<li>
<a href = "/announcements/{{ announce.pk }}/edit/" class="item">Edit Announcement</a>
</li>
{% endblock %}
{% extends 'base.html' %}
{% load static %}
{% block content %}
{% block title %} Edit Announcement {% endblock %}
{% block header %} Edit announcement: {% endblock %}
<title>Edit Announcement</title>
<h1>Edit announcement:</h1>
{% block content %}
<form action="" method=POST>
{% csrf_token %}
{{ form.as_p }}
<input type="submit" value="Save Changes to Announcement">
</form>
{% endblock content %}
\ No newline at end of file
{% endblock %}
{% extends 'base.html' %}
{% load static %}
{% block content %}
{% block title %} Widget's Announcement Board {% endblock %}
<title>Widget's Announcement Board</title>
<h1>Welcome to Widget's Announcement Board!</h1>
{% block header %} Welcome to Widget's Announcement Board! {% endblock %}
<h3>Announcements:</h3>
{% block content %}
<div id = "object_container">
<ul id = "object_list">
{% for announce in announcement %}
<a href = "{{ announce.pk }}/details/">{{ announce.title }} by {{ announce.author.first_name }} {{ announce.author.last_name }}</a><br>
{% endfor %} <br>
<a href="add/"><button value="click here">Add Announcement</button></a><br><br>
<a href = "/Dashboard/">Dashboard</a><br>
<a href = "/forum/">Forum</a><br>
<a href = "/assignments/">Assignments</a><br>
<a href = "/widget_Calendar/">Calendar</a>
<a href = "{{ announce.pk }}/details/" class = "item">{{ announce.title }} by {{ announce.author.first_name }} {{ announce.author.last_name }}</a> <br>
{% endfor %}
<li>
<a href="add/" class="item">Add Announcement</a>
</li>
</ul>
</div>
{% endblock %}
{% endblock content %}
\ No newline at end of file
{% block navbar %}
<div id = "navbar">
<a href = "/dashboard/">Dashboard</a>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
<a href = "/forum/">Forum</a>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
<a href = "/assignments/">Assignments</a>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
<a href = "/calendar/">Calendar</a>
</div>
{% endblock %}
\ No newline at end of file
# Generated by Django 3.2 on 2023-05-13 20:25
from django.db import migrations, models
import django.db.models.deletion
class Migration(migrations.Migration):
initial = True
dependencies = [
]
operations = [
migrations.CreateModel(
name='Course',
fields=[
('id', models.BigAutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')),
('code', models.CharField(blank=True, max_length=10, null=True)),
('title', models.CharField(blank=True, max_length=255, null=True)),
('section', models.CharField(blank=True, max_length=3, null=True)),
],
),
migrations.CreateModel(
name='Assignment',
fields=[
('id', models.BigAutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')),
('name', models.CharField(blank=True, max_length=255, null=True)),
('description', models.TextField(blank=True, null=True)),
('perfect_score', models.IntegerField(blank=True, null=True)),
('passing_score', models.IntegerField(blank=True, null=True)),
('course', models.ForeignKey(null=True, on_delete=django.db.models.deletion.CASCADE, to='assignments.course')),
],
),
]
{% extends 'base.html' %}
{% block content %}
<title>Add Assignment</title>
{% block title %} Add Assignment {% endblock %}
<h1>Add a new assignment:</h1>
{% block header %} Add a new assignment: {% endblock %}
{% block content %}
<form action="" method=POST>
{% csrf_token %}
{{ form.as_p }}
<input type="submit" value="Save New Assignment">
</form>
{% endblock content %}
{% endblock %}
{% extends 'base.html' %}
{% block content %}
<title>{{ assignment.name }}</title>
{% block title %} {{ assignment.name }} {% endblock %}
<h1>{{ assignment.name }}</h1>
{% block header %} {{ assignment.name }} {% endblock %}
{% block content %}
<p>
{{ assignment.course.code }} {{ assignment.course.title }}-{{ assignment.course.section }} <br><br>
Description: {{ assignment.description }} <br>
......@@ -12,6 +12,6 @@
Passing Score: {{ assignment.passing_score }} <br>
</p>
<li>
<a href="{{ assignment.get_update_url }}">Edit Assignment</a>
<a href="{{ assignment.get_update_url }}" class="item">Edit Assignment</a>
</li>
{% endblock %}
{% extends 'base.html' %}
{% block content %}
<title>Edit Assignment</title>
{% block title %} Edit Assignment {% endblock %}
<h1>Edit Assignment.</h1>
{% block header %} Edit Assignment: {% endblock %}
{% block content %}
<form action="" method=POST>
{% csrf_token %}
{{ form.as_p }}
<input type="submit" value="Save Changes to Assignment">
</form>
{% endblock content %}
{% endblock %}
{% extends 'base.html' %}
{% block content %}
<title>Widget's Assignments</title>
{% block title %} Widget's Assignments {% endblock %}
<h1>Welcome to Widget's Assignments!</h1>
{% block header %} Welcome to Widget's Assignments! {% endblock %}
{% block content %}
<div id = "object_container">
<ul id = "object_list">
{% for assignment in assignments %}
<a href="{{ assignment.pk }}/details/">{{ assignment.name }}</a><br>
<a href="{{ assignment.pk }}/details/" class="item">{{ assignment.name }}</a><br>
{% endfor %}
<br>
<li>
<a href="add/" class="item">New Assignment</a>
</li>
</ul>
</div>
{% endblock %}
<a href="add/"><button value="click here">New Assignment</button></a><br><br>
<a href="/Dashboard/">Dashboard</a><br>
<a href="/announcements/">Announcements</a><br>
<a href="/forum/">Forum</a><br>
<a href="/widget_Calendar/">Calendar</a><br>
{% endblock content %}
{% block navbar %}
<div id = "navbar">
<a href = "/dashboard/">Dashboard</a>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
<a href="/announcements/">Announcements</a>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
<a href = "/forum/">Forum</a>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
<a href = "/calendar/">Calendar</a>
</div>
{% endblock %}
\ No newline at end of file
# Generated by Django 3.2 on 2023-05-13 20:25
from django.db import migrations, models
import django.db.models.deletion
class Migration(migrations.Migration):
initial = True
dependencies = [
('Dashboard', '0001_initial'),
]
operations = [
migrations.CreateModel(
name='ForumPost',
fields=[
('id', models.BigAutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')),
('title', models.CharField(blank=True, max_length=255, null=True)),
('body', models.TextField(blank=True, null=True)),
('pub_datetime', models.DateTimeField(auto_now_add=True)),
('author', models.ForeignKey(null=True, on_delete=django.db.models.deletion.CASCADE, related_name='forumpost', to='Dashboard.widgetuser')),
],
),
migrations.CreateModel(
name='Reply',
fields=[
('id', models.BigAutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')),
('body', models.TextField(blank=True, null=True)),
('pub_datetime', models.DateTimeField(auto_now_add=True)),
('author', models.ForeignKey(null=True, on_delete=django.db.models.deletion.CASCADE, to='Dashboard.widgetuser')),
('forum_post', models.ForeignKey(null=True, on_delete=django.db.models.deletion.CASCADE, related_name='reply', to='forum.forumpost')),
],
),
]
{% extends 'base.html' %}
{% load static %}
{% block title %} Widget's Forum {% endblock %}
{% block content %}
<title>Widget's Forum</title>
<h1>Welcome to Widget's Forum</h1>
{% block header %} Welcome to Widget's Forum {% endblock %}
<h2>Forum posts:</h2>
{% block content %}
<div id = "object_container">
<ul id = "object_list">
{% for post in posts %}
<a href="forumposts/{{ post.pk }}/details/">{{ post.title }} by {{ post.author.first_name }} {{ post.author.last_name }}</a><br>
<a href="forumposts/{{ post.pk }}/details/" class="item">{{ post.title }} by {{ post.author.first_name }} {{ post.author.last_name }}</a><br>
{% endfor %}
<br><br>
<a href="forumposts/add/"><button value="click here">New Post</button></a><br><br>
<br>
<li>
<a href="forumposts/add/" class="item">New Post</a>
</li>
</ul>
</div>
{% endblock %}
<a href="/Dashboard/">Dashboard</a><br>
<a href="/announcements/">Announcements</a><br>
<a href="/assignments/">Assignments</a><br>
<a href="/widget_Calendar/">Calendar</a><br>
{% endblock content %}
\ No newline at end of file
{% block navbar %}
<div id = "navbar">
<a href = "/dashboard/">Dashboard</a>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
<a href="/announcements/">Announcements</a>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
<a href = "/assignments/">Assignments</a>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
<a href = "/calendar/">Calendar</a>
</div>
{% endblock %}
\ No newline at end of file
{% extends 'base.html' %}
{% load static %}
{% block title %} Add Post {% endblock %}
{% block header %} Add a new post: {% endblock %}
{% block content %}
<title>Add Post</title>
<h1>Add a new post:</h1>
<form method="post">
<form action="" method=POST>
{% csrf_token %}
{{ form.as_p }}
<input type="submit" value="Save New Post">
</form>
{% endblock content %}
\ No newline at end of file
{% endblock %}
{% extends 'base.html' %}
{% load static %}
{% block title %} {{ posts.title }} {% endblock %}
{% block header %} {{ posts.title }} {% endblock %}
{% block content %}
<title>{{ posts.title }}</title>
<h1>{{ posts.title }}</h1>
<h2>by {{ posts.author.first_name }} {{ posts.author.last_name }}</h2>
<p>{{ posts.pub_datetime|date:"M/d/Y, f A"}}</p>
<p>{{ posts.body }}</p>
......@@ -14,5 +14,7 @@
{{ reply.pub_datetime|date:"M/d/Y, f A"}}<br>
{{ reply.body }}<br><br>
{% endfor %}
<a href="/forum/forumposts/{{ posts.pk }}/edit/"><button value="click here">Edit Post</button></a>
{% endblock content %}
\ No newline at end of file
<li>
<a href="/forum/forumposts/{{ posts.pk }}/edit/" class="item">Edit Post</a>
</li>
{% endblock %}
{% extends 'base.html' %}
{% load static %}
{% block title %} Edit Post {% endblock %}
{% block header %} Edit post: {% endblock %}
{% block content %}
<title>Edit Post</title>
<h1>Edit post:</h1>
<form method="post">
<form action="" method=POST>
{% csrf_token %}
{{ form.as_p }}
<input type="submit" value="Save Changes to Post">
</form>
{% endblock content %}
\ No newline at end of file
{% endblock %}
body {
font-family: Arial;
line-height: 20px;
}
div {
margin: auto;
width: 50%;
padding: 10px;
line-height: 26px;
}
#main {
padding: 10px;
background-color: #ffffff;
font: 80% Verdana;
}
h1 {
text-align: center;
color: #000000;
}
#content {
}
#object_list {
text-align: center;
padding: 0;
font: 16px verdana;
}
#navbar {
background-color: #000000;
border: 1px solid #000000;
text-align: center;
margin: auto;
border-radius: 10px;
}
#navbar > a {
color: #ffffff;
}
#object_container {
}
li {
width: 255px;
background-color: #ffffff;
border: 1px solid #000000;
border-radius: 10px;
color: #000000;
list-style-type: none;
margin: 12px;
padding: 7px;
text-align: center;
cursor: pointer;
}
li:hover, li:hover .item {
background-color: #000000;
font-weight: bold;
color: #ffffff;
text-decoration: underline;
}
a {
color: #000000;
text-decoration: none;
}
a:hover {
text-decoration: underline;
color: #000000;
}
<!DOCTYPE html>
<html>
<body>
{% load static %}
<html lang="en">
<link rel="stylesheet" href="{% static 'styles.css' %}">
<head>
<title> {% block title %} Title {% endblock %}</title>
</head>
<div id = "main">
<body>
<h1>
{% block header %} Header {% endblock %}
</h1>
{% block content %}
{% endblock content %}<br>
</body>
<div id = "content">
{% block content %} Content {% endblock %}
</div>
{% block navbar %} {% endblock %}
</body>
</div>
</html>
\ No newline at end of file
{% extends "base.html" %}
{% load static %}
{% block content %}
<h1>Add Widget User</h1>
<form method="post">
{% csrf_token %}
{{ form.as_p }}
<a href="/Widgetusers/{{WidgetUser.pk}}/details">
<button type="submit">Add Widget User</button>
</a>
</form>
{% endblock content %}
\ No newline at end of file
{% extends "base.html" %}
{% load static %}
{% block content %}
<title> Widget User</title>
<br><br>
<h2>{{object.first_name}} {{object.middle_name}} {{object.last_name}}</h2>
<h3>{{object.department}}</h3>
<h3>{{object.department.home_unit}}</h3>
<a href="/Widgetusers/{{ object.id }}/edit">
<input type="button" value="Edit Widget User">
</a>"
{% endblock content %}
\ No newline at end of file
{% extends "base.html" %}
{% load static %}
{% block content %}
<h1>Edit Widget User</h1>
<form method="post">
{% csrf_token %}
{{ form.as_p }}
<input type="submit" value="Edit Widget User" />
</a>
</form>
{% endblock content %}
\ No newline at end of file
# Generated by Django 3.2 on 2023-05-13 20:25
from django.db import migrations, models
import django.db.models.deletion
class Migration(migrations.Migration):
initial = True
dependencies = [
('assignments', '0001_initial'),
]
operations = [
migrations.CreateModel(
name='Location',
fields=[
('id', models.BigAutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')),
('mode', models.CharField(choices=[('onsite', 'Onsite'), ('online', 'Online'), ('hybrid', 'Hybrid')], max_length=6)),
('venue', models.CharField(max_length=100)),
],
),
migrations.CreateModel(
name='Event',
fields=[
('id', models.BigAutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')),
('activity', models.CharField(max_length=100)),
('target_datetime', models.DateTimeField()),
('estimated_hours', models.FloatField()),
('course', models.ForeignKey(null=True, on_delete=django.db.models.deletion.CASCADE, related_name='event', to='assignments.course')),
('location', models.ForeignKey(on_delete=django.db.models.deletion.CASCADE, to='widget_Calendar.location')),
],
),
]
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
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