Skip to content

Commit

Permalink
Updated model for CohortInfo for longer URLs
Browse files Browse the repository at this point in the history
  • Loading branch information
stevebrownlee committed Sep 28, 2023
1 parent ae2f3de commit 50ad63c
Show file tree
Hide file tree
Showing 5 changed files with 105 additions and 71 deletions.
Original file line number Diff line number Diff line change
@@ -0,0 +1,23 @@
# Generated by Django 4.2.5 on 2023-09-28 13:26

from django.db import migrations, models


class Migration(migrations.Migration):

dependencies = [
('LearningAPI', '0036_alter_cohort_slack_channel'),
]

operations = [
migrations.AlterField(
model_name='cohortinfo',
name='github_classroom_url',
field=models.CharField(blank=True, max_length=255, null=True),
),
migrations.AlterField(
model_name='cohortinfo',
name='student_organization_url',
field=models.CharField(blank=True, max_length=255, null=True),
),
]
4 changes: 2 additions & 2 deletions LearningAPI/models/people/cohort_info.py
Original file line number Diff line number Diff line change
Expand Up @@ -3,8 +3,8 @@
class CohortInfo(models.Model):
"""Additional, non-critical information for a cohort."""
cohort = models.OneToOneField("Cohort", on_delete=models.CASCADE, related_name="info")
student_organization_url = models.CharField(max_length=75, null=True, blank=True)
github_classroom_url = models.CharField(max_length=75, null=True, blank=True)
student_organization_url = models.CharField(max_length=255, null=True, blank=True)
github_classroom_url = models.CharField(max_length=255, null=True, blank=True)
attendance_sheet_url = models.CharField(max_length=255, null=True, blank=True)
client_course_url = models.CharField(max_length=255, null=True, blank=True)
server_course_url = models.CharField(max_length=255, null=True, blank=True)
Expand Down
2 changes: 1 addition & 1 deletion Pipfile
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ uritemplate = "*"
gunicorn = "*"
dj-database-url = "*"
psycopg2-binary = "*"
dj-rest-auth = "*"
dj-rest-auth = "4.0.1"
django-allauth = "0.54.0"
requests = "*"
"backports.weakref" = "*"
Expand Down
72 changes: 36 additions & 36 deletions Pipfile.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

75 changes: 43 additions & 32 deletions requirements.txt
Original file line number Diff line number Diff line change
@@ -1,42 +1,53 @@
asgiref==3.7.1
astroid==2.15.5
autopep8==2.0.2
-i https://pypi.org/simple
aiohttp==3.8.5; python_version >= '3.6'
aiosignal==1.3.1; python_version >= '3.7'
asgiref==3.7.2; python_version >= '3.7'
astroid==2.15.6; python_full_version >= '3.7.2'
async-timeout==4.0.3; python_version >= '3.7'
attrs==23.1.0; python_version >= '3.7'
autopep8==2.0.4
backports.weakref==1.0.post1
certifi==2023.5.7
certifi==2023.7.22; python_version >= '3.6'
cffi==1.15.1
charset-normalizer==3.1.0
cryptography==40.0.2
defusedxml==0.7.1
dill==0.3.6
dj-database-url==2.0.0
charset-normalizer==3.2.0; python_full_version >= '3.7.0'
cryptography==41.0.4
defusedxml==0.7.1; python_version >= '2.7' and python_version not in '3.0, 3.1, 3.2, 3.3, 3.4'
dill==0.3.7; python_version < '3.11'
dj-database-url==2.1.0
dj-rest-auth==4.0.1
Django==4.2.1
django==4.2.5
django-allauth==0.54.0
django-cors-headers==4.0.0
django-cors-headers==4.2.0
djangorestframework==3.14.0
gunicorn==20.1.0
idna==3.4
isort==5.12.0
lazy-object-proxy==1.9.0
mccabe==0.7.0
oauthlib==3.2.2
platformdirs==3.5.1
psycopg2-binary==2.9.6
pycodestyle==2.10.0
frozenlist==1.4.0; python_version >= '3.8'
gunicorn==21.2.0
idna==3.4; python_version >= '3.5'
isort==5.12.0; python_full_version >= '3.8.0'
lazy-object-proxy==1.9.0; python_version >= '3.7'
mccabe==0.7.0; python_version >= '3.6'
multidict==6.0.4; python_version >= '3.7'
oauthlib==3.2.2; python_version >= '3.6'
openai==0.28.0
packaging==23.1; python_version >= '3.7'
platformdirs==3.10.0; python_version >= '3.7'
psycopg2-binary==2.9.7
pycodestyle==2.11.0; python_version >= '3.8'
pycparser==2.21
PyJWT==2.7.0
pylint==2.17.4
pyjwt[crypto]==2.8.0; python_version >= '3.7'
pylint==2.17.5
pylint-django==2.5.3
pylint-plugin-utils==0.8.2
pylint-plugin-utils==0.8.2; python_version >= '3.7' and python_version < '4.0'
python3-openid==3.2.0
pytz==2023.3
pytz==2023.3.post1
requests==2.31.0
requests-oauthlib==1.3.1
sqlparse==0.4.4
toml==0.10.2
tomli==2.0.1
tomlkit==0.11.8
typing_extensions==4.6.2
requests-oauthlib==1.3.1; python_version >= '2.7' and python_version not in '3.0, 3.1, 3.2, 3.3'
sqlparse==0.4.4; python_version >= '3.5'
tomli==2.0.1; python_version < '3.11'
tomlkit==0.12.1; python_version >= '3.7'
tqdm==4.66.1; python_version >= '3.7'
typing-extensions==4.8.0; python_version >= '3.8'
uritemplate==4.1.1
urllib3==2.0.2
wrapt==1.15.0
urllib3==2.0.4; python_version >= '3.7'
wheel==0.41.2
wrapt==1.15.0; python_version < '3.11'
yarl==1.9.2; python_version >= '3.7'

0 comments on commit 50ad63c

Please sign in to comment.