Skip to content

Commit

Permalink
remove the owner from project
Browse files Browse the repository at this point in the history
  • Loading branch information
velis74 committed Dec 6, 2024
1 parent e316550 commit c35cb97
Showing 1 changed file with 0 additions and 6 deletions.
6 changes: 0 additions & 6 deletions django_project_base/rest/project.py
Original file line number Diff line number Diff line change
Expand Up @@ -48,12 +48,6 @@ class ProjectSerializer(DynamicModelSerializerMixin, ModelSerializer):
def __init__(self, *args, is_filter: bool = False, **kwds):
super().__init__(*args, is_filter=is_filter, **kwds)

if self.context.get("view") and self.context["view"].format_kwarg == "componentdef":
self.fields.fields["owner"].display_table = DisplayMode.SUPPRESS
if self.context["view"].detail and self.instance.pk is None:
# we are rendering new form
self.fields.fields["owner"].display_form = DisplayMode.HIDDEN

# logo = fields.FileField(display=DisplayMode.SUPPRESS, required=False) # todo: not implemented UI

# we can remove the owner, because they're set at project creation and there will be a separate API for changing
Expand Down

0 comments on commit c35cb97

Please sign in to comment.