Moisés P. Sena
unread,Mar 8, 2012, 6:10:36 PM3/8/12Sign in to reply to author
Sign in to forward
You do not have permission to delete messages in this group
Either email addresses are anonymous for this group or you need the view member email addresses permission to view the original message
to django...@googlegroups.com
Good night!
I need to create the "DDL" a model in several DB schemas, not only in the "public". The names of these schemas is "username" user logged.
I'm using PostgreSQL.
My model:
class Empresa(models.Model):
'''
classdocs
'''
cnpj = models.CharField(max_length=14, blank=False, null=False, unique=True,help_text=_("Required. 14 caracterss. Some numbers."))
nome = models.CharField(max_length=255, blank=False, null=False)
uf = models.ForeignKey(Uf, on_delete=models.PROTECT, blank=False, null=False)
def __unicode__(self):
return self.nome + " (" + self.cnpj + ")"
Thanks,
{}'