Skip to content

Instantly share code, notes, and snippets.

@jhurtadojerves
Created October 16, 2017 15:48
Show Gist options
  • Select an option

  • Save jhurtadojerves/df0d944a4bcd73b0f8522a2642216120 to your computer and use it in GitHub Desktop.

Select an option

Save jhurtadojerves/df0d944a4bcd73b0f8522a2642216120 to your computer and use it in GitHub Desktop.
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