From: Guillaume Pellerin Date: Fri, 23 Sep 2016 10:52:41 +0000 (+0200) Subject: Prepare shop, renamle Category X-Git-Url: https://git.parisson.com/?a=commitdiff_plain;h=7b251e547e820c5f51a1d01a20b8f122d44a1ff0;p=mezzo.git Prepare shop, renamle Category --- diff --git a/app/organization/core/migrations/0004_auto_20160923_1141.py b/app/organization/core/migrations/0004_auto_20160923_1141.py new file mode 100644 index 00000000..906235d3 --- /dev/null +++ b/app/organization/core/migrations/0004_auto_20160923_1141.py @@ -0,0 +1,23 @@ +# -*- coding: utf-8 -*- +# Generated by Django 1.9.7 on 2016-09-23 09:41 +from __future__ import unicode_literals + +from django.db import migrations + + +class Migration(migrations.Migration): + + dependencies = [ + ('organization-core', '0003_remove_linktype_picto'), + ] + + operations = [ + migrations.RenameModel( + old_name='Category', + new_name='CustomCategory', + ), + migrations.AlterModelOptions( + name='customcategory', + options={'verbose_name': 'custom category'}, + ), + ] diff --git a/app/organization/core/models.py b/app/organization/core/models.py index f9b24067..dc6d6f64 100644 --- a/app/organization/core/models.py +++ b/app/organization/core/models.py @@ -63,11 +63,11 @@ class SubTitled(models.Model): abstract = True -class Category(Named): +class CustomCategory(Named): """Category description)""" class Meta: - verbose_name = _('category') + verbose_name = _('custom category') def __str__(self): return self.name diff --git a/app/settings.py b/app/settings.py index 12f99dd5..8877335f 100644 --- a/app/settings.py +++ b/app/settings.py @@ -127,6 +127,7 @@ USE_L10N = True AUTHENTICATION_BACKENDS = ("mezzanine.core.auth_backends.MezzanineBackend",) +SHOP_CURRENCY_LOCALE = '' ############# # DATABASES # @@ -220,11 +221,11 @@ INSTALLED_APPS = [ "mezzanine.twitter", "mezzanine.accounts", # "mezzanine.mobile", - "cartridge.shop", # "eve", 'djangobower', "meta", "mezzanine_agenda", + "cartridge.shop", # "orderable", "organization.core", "organization.media",