Minor fixes
This commit is contained in:
1 parent
90eae21bc7
commit
079af129d7
2 files changed
+2
-1
No files matched your search
+1
-1
@@ -28,7 +28,7 @@ MEDIA_ROOT = os.path.join(BASE_DIR, 'media')
|
|||||||
MEDIA_URL = '/media/'
|
MEDIA_URL = '/media/'
|
||||||
|
|
||||||
# Static files
|
# Static files
|
||||||
STATIC_ROOT = ''
|
STATIC_ROOT = os.path.join(BASE_DIR, 'staticfiles')
|
||||||
STATIC_URL = '/static/'
|
STATIC_URL = '/static/'
|
||||||
STATICFILES_DIRS = (
|
STATICFILES_DIRS = (
|
||||||
os.path.join(BASE_DIR, 'static'),
|
os.path.join(BASE_DIR, 'static'),
|
||||||
|
|||||||
@@ -8,6 +8,7 @@ from main.models import Product, OrderLine, Order
|
|||||||
class ProductSerializer(ModelSerializer):
|
class ProductSerializer(ModelSerializer):
|
||||||
class Meta:
|
class Meta:
|
||||||
model = Product
|
model = Product
|
||||||
|
fields = '__all__'
|
||||||
|
|
||||||
|
|
||||||
class ProductStatSerializer(ModelSerializer):
|
class ProductStatSerializer(ModelSerializer):
|
||||||
|
|||||||
Reference in new issue
Block a user