mods to django admin

This commit is contained in:
Sam
2021-03-08 11:10:03 +00:00
parent 44294223ed
commit c25d23548d
3 changed files with 10 additions and 9 deletions

View File

@@ -24,7 +24,7 @@ class Company(models.Model):
cif = models.CharField('CIF', max_length=15, null=True, blank=True)
company_name = models.CharField('Razón Social Cooperativa', max_length=1000, null=True, blank=True)
short_name = models.CharField('Apócope', max_length=100, null=True, blank=True) # autogenerar si blank
short_name = models.CharField('Nombre', max_length=100, null=True, blank=True) # autogenerar si blank
web_link = models.URLField('Enlace a la web', null=True, blank=True)
shop = models.BooleanField('Tienda Online', null=True, default=False)
shop_link = models.URLField('Enlace a la tienda', null=True, blank=True)
@@ -52,7 +52,7 @@ class Company(models.Model):
created = models.DateTimeField('date of creation', auto_now_add=True)
updated = models.DateTimeField('date last update', auto_now=True)
creator = models.ForeignKey('core.CustomUser', on_delete=models.DO_NOTHING, null=True, blank=True, related_name='creator')
history = models.ForeignKey(HistorySync, null=True, blank=True, on_delete=models.DO_NOTHING, related_name='company')
history = models.ForeignKey(HistorySync, null=True, blank=True, on_delete=models.DO_NOTHING, related_name='comp_hist')
class Meta:
verbose_name = "Compañía"