diff --git a/core/api_urls.py b/core/api_urls.py index cda652ea..6a7c7c96 100644 --- a/core/api_urls.py +++ b/core/api_urls.py @@ -14,6 +14,7 @@ from core.views import ( sitemap_index, ) from core.viewsets import ( + AddressViewSet, AttributeGroupViewSet, BrandViewSet, CategoryViewSet, @@ -39,6 +40,7 @@ core_router.register(r"feedbacks", FeedbackViewSet, basename="feedbacks") core_router.register(r"stocks", StockViewSet, basename="stocks") core_router.register(r"promo_codes", PromoCodeViewSet, basename="promo_codes") core_router.register(r"promotions", PromotionViewSet, basename="promotions") +core_router.register(r"addresses", AddressViewSet, basename="addresses") sitemaps = { 'products': ProductSitemap, diff --git a/core/models.py b/core/models.py index d1e1d1ad..3894846d 100644 --- a/core/models.py +++ b/core/models.py @@ -1230,6 +1230,8 @@ class Documentary(NiceModel): class Address(NiceModel): + is_publicly_visible = False + street = CharField(_("street"), max_length=255, null=True) # noqa: DJ001 district = CharField(_("district"), max_length=255, null=True) # noqa: DJ001 city = CharField(_("city"), max_length=100, null=True) # noqa: DJ001