enabled geo app and Company.city
This commit is contained in:
@@ -41,6 +41,7 @@ INSTALLED_APPS = [
|
|||||||
'django.contrib.staticfiles',
|
'django.contrib.staticfiles',
|
||||||
|
|
||||||
'core',
|
'core',
|
||||||
|
'geo',
|
||||||
'companies',
|
'companies',
|
||||||
'products',
|
'products',
|
||||||
'history',
|
'history',
|
||||||
|
|||||||
@@ -24,7 +24,7 @@ class Company(models.Model):
|
|||||||
platform = models.CharField('Plataforma de tienda online', choices=PLATFORMS, max_length=25, null=True, blank=True)
|
platform = models.CharField('Plataforma de tienda online', choices=PLATFORMS, max_length=25, null=True, blank=True)
|
||||||
email = models.EmailField('Email', null=True, blank=True)
|
email = models.EmailField('Email', null=True, blank=True)
|
||||||
logo = models.ImageField('Logo', upload_to='logos/', null=True, blank=True)
|
logo = models.ImageField('Logo', upload_to='logos/', null=True, blank=True)
|
||||||
# city = models.ForeignKey('geo.City', null=True, blank=True, on_delete=models.DO_NOTHING)
|
city = models.ForeignKey('geo.City', null=True, blank=True, on_delete=models.DO_NOTHING)
|
||||||
address = models.CharField('Dirección', max_length=1000, null=True, blank=True)
|
address = models.CharField('Dirección', max_length=1000, null=True, blank=True)
|
||||||
geo = models.PointField('Coordenadas', null=True, blank=True )
|
geo = models.PointField('Coordenadas', null=True, blank=True )
|
||||||
phone = models.CharField('Teléfono', max_length=25, null=True, blank=True)
|
phone = models.CharField('Teléfono', max_length=25, null=True, blank=True)
|
||||||
|
|||||||
Reference in New Issue
Block a user