-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
22 changed files
with
186 additions
and
217 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
17 changes: 0 additions & 17 deletions
17
backend/project/accounts/migrations/0002_remove_user_is_staff.py
This file was deleted.
Oops, something went wrong.
File renamed without changes.
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 @@ | ||
from django.test import TestCase | ||
|
||
|
||
class AccountAdminTestCase(TestCase): | ||
def test_superuser_ca(self): | ||
"""Test that only superuser can login to the admin site.""" |
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 @@ | ||
from django.test import TestCase | ||
|
||
|
||
class AccountTestCase(TestCase): | ||
def test_is_staff(self): | ||
"""Test that is_staff is same value as is_superuser""" |
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 |
---|---|---|
@@ -1,8 +1,9 @@ | ||
from project.api.serializers.observations import ObservationTypeSerializer | ||
from rest_framework import serializers | ||
|
||
from project.api.serializers.events import EventTypeSerializer | ||
|
||
|
||
class SettingsSerializer(serializers.Serializer): | ||
event_types = EventTypeSerializer(many=True, read_only=True) | ||
event_url = serializers.HyperlinkedIdentityField(view_name="api:events-list") | ||
observation_types = ObservationTypeSerializer(many=True, read_only=True) | ||
observation_public_url = serializers.HyperlinkedIdentityField( | ||
view_name="api:observations-list" | ||
) |
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
20 changes: 0 additions & 20 deletions
20
backend/project/events/migrations/0002_alter_media_uuid.py
This file was deleted.
Oops, something went wrong.
37 changes: 0 additions & 37 deletions
37
backend/project/events/migrations/0003_alter_event_source_alter_media_uuid.py
This file was deleted.
Oops, something went wrong.
File renamed without changes.
Oops, something went wrong.