Created
March 14, 2016 02:32
-
-
Save alecklandgraf/a11bd7f703cb13a2e8b5 to your computer and use it in GitHub Desktop.
bad model
This file contains hidden or 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 creates some bad audit_types | |
| class AuditLog(models.Model): | |
| LOG = 'lo', | |
| NOTE = 'no', | |
| AUDIT_CHOICES = ( | |
| (LOG, 'log'), | |
| (NOTE, 'note', | |
| ) | |
| audit_type = models.CharField(choices=audit_CHOICES) | |
| ... |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment