Skip to content

Commit

Permalink
Adding a constant for the list of built-in fields for documents.
Browse files Browse the repository at this point in the history
Allow for extensions to use the list to be able to transform external data to use the built-in field key names.
  • Loading branch information
Zoramite committed Jul 14, 2017
1 parent 8d4189a commit 2fc6b26
Showing 1 changed file with 16 additions and 0 deletions.
16 changes: 16 additions & 0 deletions grow/pods/documents.py
Expand Up @@ -13,6 +13,22 @@


PATH_LOCALE_REGEX = re.compile(r'@([^-_]+)([-_]?)([^\.]*)(\.[^\.]+)$')
BUILT_IN_FIELDS = [
'category',
'date',
'dates',
'footnotes',
'localization',
'hidden',
'order',
'parent',
'path',
'slug',
'sitemap',
'title',
'titles',
'view',
]


class Error(Exception):
Expand Down

0 comments on commit 2fc6b26

Please sign in to comment.