Skip to content
Open
Show file tree
Hide file tree
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion geonode/api/api.py
Original file line number Diff line number Diff line change
Expand Up @@ -560,7 +560,7 @@ class Meta:
resource_name = "profiles"
allowed_methods = ["get"]
ordering = ["username", "date_joined"]
excludes = ["is_staff", "password", "is_superuser", "is_active", "last_login"]
excludes = ["is_staff", "password", "is_superuser", "is_active", "last_login", "extra_data"]

filtering = {
"username": ALL,
Expand Down
20 changes: 20 additions & 0 deletions geonode/people/migrations/0039_profile_extra_data.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
# Generated by Django 5.2.10 on 2026-02-05 10:24

from django.db import migrations, models


class Migration(migrations.Migration):

dependencies = [
("people", "0038_migrate_sha1_passwords"),
]

operations = [
migrations.AddField(
model_name="profile",
name="extra_data",
field=models.JSONField(
blank=True, default=dict, help_text="additional profile-related attributes", verbose_name="Extra Data"
),
),
]
6 changes: 6 additions & 0 deletions geonode/people/models.py
Original file line number Diff line number Diff line change
Expand Up @@ -133,6 +133,12 @@ class Profile(AbstractUser):
choices=TIMEZONES,
blank=True,
)
extra_data = models.JSONField(
_("Extra Data"),
blank=True,
default=dict,
help_text=_("additional profile-related attributes"),
)

def __init__(self, *args, **kwargs):
super().__init__(*args, **kwargs)
Expand Down
Loading