Skip to content

Commit

Permalink
style guide fix
Browse files Browse the repository at this point in the history
  • Loading branch information
group117 committed Jul 6, 2024
1 parent af9cc29 commit 984f44a
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 5 deletions.
7 changes: 4 additions & 3 deletions backend/api/models.py
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,8 @@
# * set to the desired behavior
# * Remove `managed = False` lines if you wish to allow Django
# * to create, modify, and delete the table
# Feel free to rename the models, but don't rename db_table values or field names.
# Feel free to rename the models, but don't rename db_table values
# or field names.
from django.db import models


Expand Down Expand Up @@ -44,8 +45,8 @@ class Meta:
class MedicationLog(models.Model):
log_id = models.AutoField(primary_key=True)
user = models.ForeignKey('Users', models.DO_NOTHING, blank=True, null=True)
medication = models.ForeignKey(MedicationInfo, models.DO_NOTHING, blank=True,
null=True)
medication = models.ForeignKey(MedicationInfo, models.DO_NOTHING,
blank=True, null=True)
date = models.DateField()
time = models.TimeField()
time_zone = models.CharField(max_length=5)
Expand Down
8 changes: 6 additions & 2 deletions backend/api/views.py
Original file line number Diff line number Diff line change
Expand Up @@ -5,9 +5,13 @@
from django.conf import settings
import os


# Create your views here.
def test_page(request):
return HttpResponse('This is a test page to verify if the django setup works')
return HttpResponse('This is a test page to verify if the \
django setup works')


def api_home(request):
return render(request, os.path.join(settings.FRONTEND_DIR, 'api_home.html'))
return render(request, os.path.join(settings.FRONTEND_DIR, \
'api_home.html'))

0 comments on commit 984f44a

Please sign in to comment.