Refactor code structure for improved readability and maintainability
This commit is contained in:
@@ -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)
|
||||
|
||||
@@ -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
|
||||
Reference in New Issue
Block a user