Verified Commit b2f3e0ab authored by Micheal Gendy's avatar Micheal Gendy
Browse files

fix bugs

parent 61308a17
......@@ -13,8 +13,8 @@ class {{ model }}Serializer(ModelSerializer):
class Meta:
model = {{ model }}{% if depth != 0 %}
depth = {{ depth }}{% endif %}
fields = '__all__'
{% for i in merged_fields_models %}{% if i.1|join:", " == model %}{% with field=i.0|join:"''" %}
id,name
exclude = ({{field|add_quotes|safe}})
{% endwith %}
{% endif %}
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment