fixed open data slug for supermarket category

This commit is contained in:
vabene1111
2025-07-06 13:00:10 +02:00
parent f67efd55a7
commit d39d5d4cbf
4 changed files with 18 additions and 1 deletions

View File

@@ -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):

View File

@@ -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>

View File

@@ -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'],
}; };
} }

View File

@@ -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'],
}; };
} }