Skip to content

Commit

Permalink
✨ Allow meta objects to be defined from within the OBJECTS API (#1117)
Browse files Browse the repository at this point in the history
* ✨ Allow meta objects to be defined from within the OBJECTS API

* 🐛 Check if objecttype when searching for objects
  • Loading branch information
damm89 authored Jan 8, 2024
1 parent 64346d3 commit 15320aa
Show file tree
Hide file tree
Showing 38 changed files with 171 additions and 852 deletions.
4 changes: 2 additions & 2 deletions backend/src/zac/contrib/objects/checklists/api/serializers.py
Original file line number Diff line number Diff line change
Expand Up @@ -134,7 +134,7 @@ class ChecklistSerializer(APIModelSerializer):
answers = ChecklistAnswerSerializer(
many=True,
)
meta = serializers.HiddenField(default=True)
# meta = serializers.HiddenField(default=True)
locked_by = UserSlugRelatedField(
help_text=_("Checklist is locked by this user."),
slug_field="username",
Expand All @@ -145,7 +145,7 @@ class ChecklistSerializer(APIModelSerializer):

class Meta:
model = Checklist
fields = ("answers", "meta", "locked_by")
fields = ("answers", "locked_by")

def validate(self, attrs):
validated_data = super().validate(attrs)
Expand Down
277 changes: 0 additions & 277 deletions backend/src/zac/contrib/objects/checklists/migrations/0001_initial.py

This file was deleted.

This file was deleted.

This file was deleted.

This file was deleted.

Loading

0 comments on commit 15320aa

Please sign in to comment.