mirror of
https://github.com/TandoorRecipes/recipes.git
synced 2026-01-01 04:10:06 -05:00
fixed open data slug for supermarket category
This commit is contained in:
@@ -641,7 +641,7 @@ class SupermarketCategorySerializer(UniqueFieldsMixin, WritableNestedModelSerial
|
|||||||
|
|
||||||
class Meta:
|
class Meta:
|
||||||
model = SupermarketCategory
|
model = SupermarketCategory
|
||||||
fields = ('id', 'name', 'description')
|
fields = ('id', 'name', 'description', 'open_data_slug')
|
||||||
|
|
||||||
|
|
||||||
class SupermarketCategoryRelationSerializer(WritableNestedModelSerializer):
|
class SupermarketCategoryRelationSerializer(WritableNestedModelSerializer):
|
||||||
|
|||||||
@@ -14,6 +14,7 @@
|
|||||||
|
|
||||||
<v-text-field :label="$t('Name')" v-model="editingObj.name"></v-text-field>
|
<v-text-field :label="$t('Name')" v-model="editingObj.name"></v-text-field>
|
||||||
<v-textarea :label="$t('Description')" v-model="editingObj.description"></v-textarea>
|
<v-textarea :label="$t('Description')" v-model="editingObj.description"></v-textarea>
|
||||||
|
<v-text-field :label="$t('Open_Data_Slug')" :hint="$t('open_data_help_text')" persistent-hint v-model="editingObj.openDataSlug" disabled></v-text-field>
|
||||||
|
|
||||||
</v-form>
|
</v-form>
|
||||||
</v-card-text>
|
</v-card-text>
|
||||||
|
|||||||
@@ -71,6 +71,12 @@ export interface PatchedSupermarketCategory {
|
|||||||
* @memberof PatchedSupermarketCategory
|
* @memberof PatchedSupermarketCategory
|
||||||
*/
|
*/
|
||||||
description?: string;
|
description?: string;
|
||||||
|
/**
|
||||||
|
*
|
||||||
|
* @type {string}
|
||||||
|
* @memberof PatchedSupermarketCategory
|
||||||
|
*/
|
||||||
|
openDataSlug?: string;
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
@@ -93,6 +99,7 @@ export function PatchedSupermarketCategoryFromJSONTyped(json: any, ignoreDiscrim
|
|||||||
'id': json['id'] == null ? undefined : json['id'],
|
'id': json['id'] == null ? undefined : json['id'],
|
||||||
'name': json['name'] == null ? undefined : json['name'],
|
'name': json['name'] == null ? undefined : json['name'],
|
||||||
'description': json['description'] == null ? undefined : json['description'],
|
'description': json['description'] == null ? undefined : json['description'],
|
||||||
|
'openDataSlug': json['open_data_slug'] == null ? undefined : json['open_data_slug'],
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -105,6 +112,7 @@ export function PatchedSupermarketCategoryToJSON(value?: PatchedSupermarketCateg
|
|||||||
'id': value['id'],
|
'id': value['id'],
|
||||||
'name': value['name'],
|
'name': value['name'],
|
||||||
'description': value['description'],
|
'description': value['description'],
|
||||||
|
'open_data_slug': value['openDataSlug'],
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
@@ -71,6 +71,12 @@ export interface SupermarketCategory {
|
|||||||
* @memberof SupermarketCategory
|
* @memberof SupermarketCategory
|
||||||
*/
|
*/
|
||||||
description?: string;
|
description?: string;
|
||||||
|
/**
|
||||||
|
*
|
||||||
|
* @type {string}
|
||||||
|
* @memberof SupermarketCategory
|
||||||
|
*/
|
||||||
|
openDataSlug?: string;
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
@@ -94,6 +100,7 @@ export function SupermarketCategoryFromJSONTyped(json: any, ignoreDiscriminator:
|
|||||||
'id': json['id'] == null ? undefined : json['id'],
|
'id': json['id'] == null ? undefined : json['id'],
|
||||||
'name': json['name'],
|
'name': json['name'],
|
||||||
'description': json['description'] == null ? undefined : json['description'],
|
'description': json['description'] == null ? undefined : json['description'],
|
||||||
|
'openDataSlug': json['open_data_slug'] == null ? undefined : json['open_data_slug'],
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -106,6 +113,7 @@ export function SupermarketCategoryToJSON(value?: SupermarketCategory | null): a
|
|||||||
'id': value['id'],
|
'id': value['id'],
|
||||||
'name': value['name'],
|
'name': value['name'],
|
||||||
'description': value['description'],
|
'description': value['description'],
|
||||||
|
'open_data_slug': value['openDataSlug'],
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user