Commit 8e18438a authored by nheoxoz's avatar nheoxoz

Merge branch 'staging' to 'main' with references

parents 8f02ef99 219dee4b
......@@ -19,6 +19,29 @@ The group, OhMyOhMyBash, promises that this project was made by them.
References:
Dashboard:
https://www.computerhope.com/issues/ch001704.htm#:~:text=Adding%20the%20%22list%2Dstyle%3A,removes%20any%20bullet%20or%20number.
https://www.w3schools.com/howto/howto_css_list_without_bullets.asp
https://blog.hubspot.com/website/html-line-break#:~:text=To%20do%20a%20line%20break%20in%20HTML%2C%20use%20the%20%3Cbr,%3E%20and%20element.
Announcements:
https://www.youtube.com/watch?v=cWq6jQGWmEg&ab_channel=VeryAcademy
https://www.codingninjas.com/codestudio/library/django-model-data-types-and-fields-list
https://automatetheboringstuff.com/chapter6/#:~:text=A%20multiline%20string%20in%20Python,lines%20inside%20a%20multiline%20string.
https://www.w3schools.com/tags/tag_br.asp
Forum:
https://docs.github.com/en/pull-requests/committing-changes-to-your-project/creating-and-editing-commits/changing-a-commit-message
https://betterprogramming.pub/how-to-use-pass-break-and-continue-in-python-6e0201fc032a
https://www.delftstack.com/howto/django/django-reset-database/
Calendar:
https://pythonguides.com/django-round-to-two-decimal-places/
https://www.geeksforgeeks.org/datetimefield-django-models/
(sgd) Elaiza R. Bolislis, 3/6/2023
(sgd) Alliyah Ericka Therese E. Marcelo, 3/6/2023
......
# Generated by Django 4.1.7 on 2023-03-06 01:57
from django.db import migrations, models
import django.db.models.deletion
class Migration(migrations.Migration):
dependencies = [
('assignments', '0001_initial'),
('widget_calendar', '0004_alter_event_location'),
]
operations = [
migrations.AlterField(
model_name='event',
name='course',
field=models.ForeignKey(on_delete=django.db.models.deletion.CASCADE, related_name='event_course', to='assignments.course'),
),
migrations.AlterField(
model_name='location',
name='mode',
field=models.CharField(choices=[('onsite', 'onsite'), ('online', 'online'), ('hybrid', 'hybrid')], default='onsite', max_length=6),
),
]
......@@ -24,11 +24,7 @@ class Event(models.Model):
activity = models.CharField(max_length=255)
estimated_hours = models.FloatField()
location = models.ForeignKey(Location, on_delete=models.CASCADE)
course = course = models.ForeignKey(
'assignments.Course',
on_delete=models.CASCADE,
related_name="event_course"
)
course = models.CharField(max_length=100)
def __str__(self):
return '{}, {}'.format(self.activity, self.target_datetime)
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