Skip to content

Commit 23490b9

Browse files
committed
Merge branch 'feature/country-to-account-page' into develop
2 parents da7235b + b936d4e commit 23490b9

3 files changed

Lines changed: 5 additions & 3 deletions

File tree

api/serializers.py

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1701,12 +1701,14 @@ def validate_document(self, document):
17011701

17021702

17031703
class ProfileSerializer(ModelSerializer):
1704-
country = MiniCountrySerializer()
1704+
country = serializers.PrimaryKeyRelatedField(queryset=Country.objects.all())
1705+
country_details = MiniCountrySerializer(source="country", read_only=True)
17051706

17061707
class Meta:
17071708
model = Profile
17081709
fields = (
17091710
"country",
1711+
"country_details",
17101712
"org",
17111713
"org_type",
17121714
"city",

assets

notifications/admin.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@ def std(self, obj):
2828

2929

3030
class SubscriptionAdmin(CompareVersionAdmin):
31-
search_fields = ("user__username", "rtype")
31+
search_fields = ("user__email", "user__username", "rtype")
3232
list_filter = (("rtype", ChoiceDropdownFilter),)
3333

3434
def get_queryset(self, request):

0 commit comments

Comments
 (0)