Skip to content

Commit

Permalink
Merge pull request #2142 from tulimaki/change-supplier-name-max-length
Browse files Browse the repository at this point in the history
Core: supplier name max length to 128 from 64
  • Loading branch information
chessbr committed Feb 28, 2020
2 parents 5e8f9b5 + 57b4be4 commit 6ad9947
Show file tree
Hide file tree
Showing 3 changed files with 25 additions and 1 deletion.
4 changes: 4 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,10 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0

List all changes after the last release here (newer on top). Each change on a separate bullet point line.

### Changed

- Core: supplier name max length to 128 from 64

## [1.10.5] - 2020-02-27

### Added
Expand Down
20 changes: 20 additions & 0 deletions shuup/core/migrations/0067_supplier_name_max_length_to_128.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
# -*- coding: utf-8 -*-
# Generated by Django 1.11.28 on 2020-02-28 11:43
from __future__ import unicode_literals

from django.db import migrations, models


class Migration(migrations.Migration):

dependencies = [
('shuup', '0066_contact-picture'),
]

operations = [
migrations.AlterField(
model_name='supplier',
name='name',
field=models.CharField(db_index=True, help_text='The product suppliers name. Suppliers can be used manage the inventory of stocked products.', max_length=128, verbose_name='name'),
),
]
2 changes: 1 addition & 1 deletion shuup/core/models/_suppliers.py
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,7 @@ class Supplier(ModuleInterface, TranslatableShuupModel):
created_on = models.DateTimeField(auto_now_add=True, editable=False, db_index=True, verbose_name=_('created on'))
modified_on = models.DateTimeField(auto_now=True, editable=False, db_index=True, verbose_name=_('modified on'))
identifier = InternalIdentifierField(unique=True)
name = models.CharField(verbose_name=_("name"), max_length=64, db_index=True, help_text=_(
name = models.CharField(verbose_name=_("name"), max_length=128, db_index=True, help_text=_(
"The product suppliers name. "
"Suppliers can be used manage the inventory of stocked products."
))
Expand Down

0 comments on commit 6ad9947

Please sign in to comment.