generated from ocadotechnology/codeforlife-template-backend
-
Notifications
You must be signed in to change notification settings - Fork 20
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Log into github and create new contributor
- Loading branch information
Showing
7 changed files
with
161 additions
and
63 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -166,3 +166,6 @@ cython_debug/ | |
|
||
# Django | ||
static/ | ||
|
||
# 0Auth app | ||
.env |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,94 +1,59 @@ | ||
# Generated by Django 3.2.25 on 2024-07-22 14:17 | ||
# Generated by Django 3.2.25 on 2024-07-23 13:03 | ||
|
||
import django.core.validators | ||
from django.db import migrations, models | ||
import django.db.models.deletion | ||
|
||
|
||
class Migration(migrations.Migration): | ||
|
||
initial = True | ||
|
||
dependencies = [] | ||
dependencies = [ | ||
] | ||
|
||
operations = [ | ||
migrations.CreateModel( | ||
name="Contributor", | ||
name='Contributor', | ||
fields=[ | ||
( | ||
"id", | ||
models.IntegerField( | ||
help_text="The contributor's GitHub user-ID.", | ||
primary_key=True, | ||
serialize=False, | ||
), | ||
), | ||
( | ||
"email", | ||
models.EmailField(max_length=254, verbose_name="email"), | ||
), | ||
("name", models.TextField(verbose_name="name")), | ||
("location", models.TextField(verbose_name="location")), | ||
("html_url", models.TextField(verbose_name="html url")), | ||
("avatar_url", models.TextField(verbose_name="avatar url")), | ||
('id', models.IntegerField(help_text="The contributor's GitHub user-ID.", primary_key=True, serialize=False)), | ||
('email', models.EmailField(max_length=254, verbose_name='email')), | ||
('name', models.TextField(verbose_name='name')), | ||
('location', models.TextField(null=True, verbose_name='location')), | ||
('html_url', models.TextField(verbose_name='html url')), | ||
('avatar_url', models.TextField(verbose_name='avatar url')), | ||
], | ||
options={ | ||
"verbose_name": "contributor", | ||
"verbose_name_plural": "contributors", | ||
'verbose_name': 'contributor', | ||
'verbose_name_plural': 'contributors', | ||
}, | ||
), | ||
migrations.CreateModel( | ||
name="Repository", | ||
name='Repository', | ||
fields=[ | ||
( | ||
"id", | ||
models.AutoField( | ||
auto_created=True, | ||
primary_key=True, | ||
serialize=False, | ||
verbose_name="ID", | ||
), | ||
), | ||
( | ||
"gh_id", | ||
models.IntegerField( | ||
help_text="Github ID of the repo a contributor has contributed to.", | ||
verbose_name="GitHub ID", | ||
), | ||
), | ||
( | ||
"points", | ||
models.IntegerField( | ||
default=0, | ||
help_text="Story points the contributor closed for this repository.", | ||
verbose_name="points", | ||
), | ||
), | ||
( | ||
"contributor", | ||
models.ForeignKey( | ||
on_delete=django.db.models.deletion.CASCADE, | ||
to="api.contributor", | ||
), | ||
), | ||
('id', models.AutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')), | ||
('gh_id', models.IntegerField(help_text='Github ID of the repo a contributor has contributed to.', verbose_name='GitHub ID')), | ||
('points', models.IntegerField(default=0, help_text='Story points the contributor closed for this repository.', verbose_name='points')), | ||
('contributor', models.ForeignKey(on_delete=django.db.models.deletion.CASCADE, to='api.contributor')), | ||
], | ||
options={ | ||
"verbose_name": "repository", | ||
"verbose_name_plural": "repositories", | ||
"unique_together": {("contributor", "gh_id")}, | ||
'verbose_name': 'repository', | ||
'verbose_name_plural': 'repositories', | ||
'unique_together': {('contributor', 'gh_id')}, | ||
}, | ||
), | ||
migrations.CreateModel( | ||
name="AgreementSignature", | ||
name='AgreementSignature', | ||
fields=[ | ||
('id', models.AutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')), | ||
('agreement_id', models.CharField(help_text='Commit ID of the contribution agreement in workspace.', max_length=40, validators=[django.core.validators.MinLengthValidator(40)], verbose_name='agreement id')), | ||
('signed_at', models.DateTimeField(verbose_name='signed at')), | ||
('contributor', models.ForeignKey(on_delete=django.db.models.deletion.CASCADE, to='api.contributor')), | ||
], | ||
options={ | ||
"verbose_name": "agreement signature", | ||
"verbose_name_plural": "agreement signatures", | ||
"unique_together": {("contributor", "agreement_id")}, | ||
'verbose_name': 'agreement signature', | ||
'verbose_name_plural': 'agreement signatures', | ||
'unique_together': {('contributor', 'agreement_id')}, | ||
}, | ||
), | ||
] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
https://github.com/login/oauth/authorize?client_id=Ov23liBErSabQFqROeMg |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters