Skip to content
Closed
Changes from all commits
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
4 changes: 3 additions & 1 deletion contentstack_management/content_types/content_type.py
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,8 @@ def __init__(self, client, content_type_uid=None, branch = None):
self.client = client
self.content_type_uid = content_type_uid
self.branch = branch
if self.branch:
self.add_header('branch', branch)
super().__init__(self.client)

def find(self):
Expand Down Expand Up @@ -344,4 +346,4 @@ def imports(self, file_path):
def entry(self, entry_uid: str =None):
if self.content_type_uid is None:
raise Exception('Content type uid is required')
return entry.Entry(self.client, self.content_type_uid, entry_uid)
return entry.Entry(self.client, self.content_type_uid, entry_uid)