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.
Start api models for contribution agreement (#82)
- Loading branch information
Showing
2 changed files
with
26 additions
and
0 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 |
---|---|---|
@@ -0,0 +1,20 @@ | ||
""" | ||
© Ocado Group | ||
Created on 05/07/2024 at 16:18:48(+01:00). | ||
""" | ||
|
||
from django.db import models | ||
|
||
class Contributor(models.Model): | ||
""" A contributor """ | ||
id = models.IntegerField(primary_key=True) | ||
email = models.TextField() | ||
name = models.TextField() | ||
location = models.TextField() | ||
html_url = models.TextField() | ||
avatar_url = models.TextField() | ||
|
||
def __str__(self): | ||
return super().name | ||
|
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,6 @@ | ||
""" | ||
© Ocado Group | ||
Created on 05/07/2024 at 16:39:14(+01:00). | ||
""" | ||
from django.db import models |