~homeworkprod/byceps

ref: 342e5296ae417372e544ce931b442e98301c17a1 byceps/byceps/blueprints/admin/brand/views.py -rw-r--r-- 5.6 KiB
929ad3e9 — Jochen Kupperschmidt 4 months ago
Add `archived` flag to brand

DDL/SQL to update datebase:

    ALTER TABLE brands ADD COLUMN archived boolean;
    UPDATE brands SET archived = false;
    ALTER TABLE brands ALTER COLUMN archived SET NOT NULL;
2ad53f37 — Jochen Kupperschmidt 4 months ago
Make `image_filename` argument to `update_brand` mandatory

Omitting the original keyword argument would remove an existing image
filename from the brand. This change should prevent that.
d1dff0da — Jochen Kupperschmidt 7 months ago
Translate flash messages to English
e6f5deba — Jochen Kupperschmidt 7 months ago
Wrap flash message texts in `gettext` calls for translation
1b14010f — Jochen Kupperschmidt 8 months ago
Introduce `byceps.util.authorization.register_permission_enum` to be used in blueprint views
386eb13e — Jochen Kupperschmidt 8 months ago
Move permission registry module out of blueprints package
3d7b49f0 — Jochen Kupperschmidt 8 months ago
Update copyright notes for 2021
38df9baa — Jochen Kupperschmidt 8 months ago
Move `permission_required` decorator to `byceps.util.views`
b28e48a8 — Jochen Kupperschmidt 9 months ago
Remove email service's `find_config` in favor of `get_config`
9d359122 — Jochen Kupperschmidt 9 months ago
Create email config on brand creation via admin UI

From now on, each brand is expected to have an email configuration.
087d94cc — Jochen Kupperschmidt 9 months ago
Remove suffix from email config service fetch functions' names
4fad7af3 — Jochen Kupperschmidt 9 months ago
Remove email config ID, promote brand ID to primary key

DDL:

    DROP INDEX ix_email_configs_brand_id;
    ALTER TABLE email_configs DROP CONSTRAINT email_configs_pkey;
    ALTER TABLE email_configs ADD CONSTRAINT email_configs_pkey PRIMARY KEY (brand_id);
    ALTER TABLE email_configs DROP COLUMN id;
315e7c9d — Jochen Kupperschmidt 9 months ago
Move admin UI to update email configurations to brand settings, dissolve email admin blueprint
1fa7c946 — Jochen Kupperschmidt 9 months ago
Move admin UI to view email configurations to brand settings
0b51dd42 — Jochen Kupperschmidt 10 months ago
Refer to license as "Revised BSD" to clarify that it is not customized

The common name "Modified BSD License" for the 3-clause BSD license can
be misleading as it might suggest it is a BSD license customized by the
project author.

To avoid this, refer to the license under one of its other names
instead.
018cd4bf — Jochen Kupperschmidt 1 year, 7 days ago
Rename brand service function `get_brands` to `get_all_brands`

This makes the name consistent with those for other similar service
functions and leaves room for a function that allows for filter
arguments.
86797838 — Jochen Kupperschmidt 1 year, 25 days ago
Implement functionality to update a brand

SQL:

    INSERT INTO authz_permissions (id, title) VALUES ('brand.update', 'Marken bearbeiten');
    INSERT INTO authz_role_permissions (role_id, permission_id) VALUES ('brand_admin', 'brand.update');
9e9cf39d — Jochen Kupperschmidt 1 year, 25 days ago
Move `view` view function before mutator view functions
97cfc473 — Jochen Kupperschmidt 1 year, 26 days ago
Move authorization blueprint into `common` subpackage
f1e69db7 — Jochen Kupperschmidt 1 year, 4 months ago
Remove news item counts from admin brands index
Next