added basic serializers
This commit is contained in:
8
companies/serializers.py
Normal file
8
companies/serializers.py
Normal file
@@ -0,0 +1,8 @@
|
|||||||
|
from rest_framework import serializers
|
||||||
|
from companies.models import Company
|
||||||
|
|
||||||
|
|
||||||
|
class CompanySerializer(serializers.ModelSerializer):
|
||||||
|
class Meta:
|
||||||
|
model = Company
|
||||||
|
exclude = ['created', 'updated', 'creator']
|
||||||
8
history/serializers.py
Normal file
8
history/serializers.py
Normal file
@@ -0,0 +1,8 @@
|
|||||||
|
from rest_framework import serializers
|
||||||
|
from history.models import HistorySync
|
||||||
|
|
||||||
|
|
||||||
|
class HistorySyncLogSerializer(serializers.ModelSerializer):
|
||||||
|
class Meta:
|
||||||
|
model = HistorySync
|
||||||
|
exclude = ['created', 'updated', 'creator']
|
||||||
8
products/serializers.py
Normal file
8
products/serializers.py
Normal file
@@ -0,0 +1,8 @@
|
|||||||
|
from rest_framework import serializers
|
||||||
|
from products.models import Product
|
||||||
|
|
||||||
|
|
||||||
|
class ProductSerializer(serializers.ModelSerializer):
|
||||||
|
class Meta:
|
||||||
|
model = Product
|
||||||
|
exclude = ['created', 'updated', 'creator']
|
||||||
8
stats/serializers.py
Normal file
8
stats/serializers.py
Normal file
@@ -0,0 +1,8 @@
|
|||||||
|
from rest_framework import serializers
|
||||||
|
from stats.models import StatsLog
|
||||||
|
|
||||||
|
|
||||||
|
class StatsLogSerializer(serializers.ModelSerializer):
|
||||||
|
class Meta:
|
||||||
|
model = StatsLog
|
||||||
|
exclude = ['created', 'updated', 'creator']
|
||||||
Reference in New Issue
Block a user