Skip to content

Commit

Permalink
OpenConceptLab/ocl_issues#1732 | URL registry | fixing namespace and …
Browse files Browse the repository at this point in the history
…uniq clauses
  • Loading branch information
snyaggarwal committed Jan 15, 2024
1 parent 6c5b4eb commit d48dd19
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion core/url_registry/serializers.py
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ class URLRegistryBaseSerializer(ModelSerializer):

class Meta:
model = URLRegistry
fields = ['id', 'name', 'url', 'namespace', 'owner', 'owner_type', 'type']
fields = ['id', 'name', 'url', 'namespace', 'owner', 'owner_type']

def to_representation(self, instance):
data = super().to_representation(instance)
Expand Down
2 changes: 1 addition & 1 deletion core/url_registry/tests.py
Original file line number Diff line number Diff line change
Expand Up @@ -17,4 +17,4 @@ def test_owner_type(self):
user = UserProfile()
self.assertEqual(URLRegistry().owner_type, None)
self.assertEqual(URLRegistry(organization=org).owner_type, 'Organization')
self.assertEqual(URLRegistry(user=user).owner, 'User')
self.assertEqual(URLRegistry(user=user).owner_type, 'User')

0 comments on commit d48dd19

Please sign in to comment.