-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[#8] Integrate cration of docs with config steps + other feedback
- delete registry, store config_settings as class_attributes on configuration steps - add static method to update model field descriptions with custom fields - modify template to show required settings section only if required settings are present
- Loading branch information
Showing
17 changed files
with
223 additions
and
327 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,18 +1,19 @@ | ||
from django.contrib import postgres | ||
from django.db import models | ||
|
||
basic_field_description = { | ||
basic_field_descriptions = { | ||
postgres.fields.ArrayField: "string, comma-delimited ('foo,bar,baz')", | ||
models.BooleanField: "True, False", | ||
models.CharField: "string", | ||
models.EmailField: "string representing an Email address ([email protected])", | ||
models.FileField: ( | ||
"string represeting the (absolute) path to a file, " | ||
"string representing the (absolute) path to a file, " | ||
"including file extension: {example}".format( | ||
example="/absolute/path/to/file.xml" | ||
) | ||
), | ||
models.ImageField: ( | ||
"string represeting the (absolute) path to an image file, " | ||
"string representing the (absolute) path to an image file, " | ||
"including file extension: {example}".format( | ||
example="/absolute/path/to/image.png" | ||
) | ||
|
43 changes: 0 additions & 43 deletions
43
django_setup_configuration/management/commands/check_config_docs.py
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.