We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Attempting to print a simple database object with choices on one field.
class User(models.Model): A = 'a' B = 'b' C = 'c' role = models.CharField( choices=( (A, "Alpha"), (B, "Beta"), (C, "Charlie"), ), default=A, max_length=20, )
Traceback (most recent call last): File "/Users/ash/src/xxx/.venv/lib/python3.7/site-packages/prettyprinter/prettyprinter.py", line 387, in _run_pretty doc = pretty_fn(value, ctx) File "/Users/ash/src/xxx/.venv/lib/python3.7/site-packages/prettyprinter/extras/django.py", line 169, in pretty_base_model display File "/Users/ash/src/xxx/.venv/lib/python3.7/site-packages/prettyprinter/prettyprinter.py", line 154, in comment_doc return annotate(CommentAnnotation(comment_text), doc) File "/Users/ash/src/xxx/.venv/lib/python3.7/site-packages/prettyprinter/prettyprinter.py", line 111, in __init__ assert isinstance(value, str) AssertionError
The text was updated successfully, but these errors were encountered:
No branches or pull requests
Description
Attempting to print a simple database object with choices on one field.
Stack trace
The text was updated successfully, but these errors were encountered: