Created
October 16, 2017 15:48
-
-
Save jhurtadojerves/df0d944a4bcd73b0f8522a2642216120 to your computer and use it in GitHub Desktop.
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
| class User(models.Model): | |
| user = models.OneToOneField(Usuario, related_name='profile') | |
| has_add_center = models.BooleanField(default=False) | |
| reason_to_validate = models.TextField(blank=True) | |
| def __str__(self): | |
| return self.user.get_full_name() | |
| class Meta: | |
| permissions = ( | |
| ('add_center', 'Puede Crear Destinos Turísticos'), | |
| ) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment