Refactor code structure for improved readability and maintainability

This commit is contained in:
2025-12-07 02:58:37 +01:00
parent 4cbebff43b
commit 5b066e2770
5 changed files with 14 additions and 2 deletions

View File

@@ -11,7 +11,7 @@ class ShopConfiguration(models.Model):
contact_email = models.EmailField(max_length=254, blank=True, null=True)
contact_phone = models.CharField(max_length=20, blank=True, null=True)
contact_address = models.TextField(blank=True, null=True)
opening_hours = models.JSONField(blank=True, null=True) #FIXME: vytvoř tvar pro otvírací dobu
opening_hours = models.JSONField(blank=True, null=True) #FIXME: vytvoř JSON tvar pro otvírací dobu, přes validátory
#Social
facebook_url = models.URLField(max_length=200, blank=True, null=True)

View File

@@ -2,4 +2,5 @@ from django.shortcuts import render
# Create your views here.
#TODO: dej public tag pro view, aby to mohl react číst pomocí public axiosu
#TODO: dej public tag pro view
# rozdělit fieldy podle práv aby se třeba neexposelo citlivé údaje