Skip to content

Commit e7349d8

Browse files
PeterW-LWLFinalAngel
authored andcommitted
Make name unique (#53)
* Make name unique ref #52 * run makemigrations * run makemessages
1 parent c042973 commit e7349d8

File tree

3 files changed

+38
-11
lines changed

3 files changed

+38
-11
lines changed

djangocms_snippet/locale/en/LC_MESSAGES/django.po

Lines changed: 17 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ msgid ""
88
msgstr ""
99
"Project-Id-Version: PACKAGE VERSION\n"
1010
"Report-Msgid-Bugs-To: \n"
11-
"POT-Creation-Date: 2016-09-08 10:18+0200\n"
11+
"POT-Creation-Date: 2018-10-12 13:25+0200\n"
1212
"PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n"
1313
"Last-Translator: FULL NAME <EMAIL@ADDRESS>\n"
1414
"Language-Team: LANGUAGE <LL@li.org>\n"
@@ -17,39 +17,47 @@ msgstr ""
1717
"Content-Type: text/plain; charset=UTF-8\n"
1818
"Content-Transfer-Encoding: 8bit\n"
1919

20-
#: apps.py:8 models.py:54 models.py:76
20+
#: apps.py:8 models.py:53
2121
msgid "Snippets"
2222
msgstr ""
2323

24-
#: cms_plugins.py:18 models.py:53 models.py:75
24+
#: cms_plugins.py:18 models.py:52
2525
msgid "Snippet"
2626
msgstr ""
2727

28-
#: cms_plugins.py:39 templatetags/snippet_tags.py:98
28+
#: cms_plugins.py:39 templatetags/snippet_tags.py:99
2929
#, python-format
3030
msgid "Template %(template)s does not exist."
3131
msgstr ""
3232

33-
#: models.py:22
33+
#: models.py:21
3434
msgid "Name"
3535
msgstr ""
3636

37-
#: models.py:27
37+
#: models.py:26
3838
msgid "HTML"
3939
msgstr ""
4040

41-
#: models.py:31
41+
#: models.py:30
4242
msgid "Template"
4343
msgstr ""
4444

45-
#: models.py:34
45+
#: models.py:33
4646
msgid ""
4747
"Enter a template (e.g. \"snippets/plugin_xy.html\") to be rendered. If "
4848
"\"template\" is given, the contents of field \"HTML\" will be passed as "
4949
"template variable {{ html }} to the template. Otherwise, the content of "
5050
"\"HTML\" is rendered."
5151
msgstr ""
5252

53-
#: models.py:41
53+
#: models.py:40
5454
msgid "Slug"
5555
msgstr ""
56+
57+
#: models.py:74
58+
msgid "Snippet Ptr"
59+
msgstr ""
60+
61+
#: models.py:75
62+
msgid "Snippet Ptrs"
63+
msgstr ""
Lines changed: 19 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,19 @@
1+
# -*- coding: utf-8 -*-
2+
# Generated by Django 1.9 on 2018-10-12 10:03
3+
from __future__ import unicode_literals
4+
5+
from django.db import migrations
6+
7+
8+
class Migration(migrations.Migration):
9+
10+
dependencies = [
11+
('djangocms_snippet', '0007_auto_alter_template_helptext'),
12+
]
13+
14+
operations = [
15+
migrations.AlterModelOptions(
16+
name='snippetptr',
17+
options={'verbose_name': 'Snippet Ptr', 'verbose_name_plural': 'Snippet Ptrs'},
18+
),
19+
]

djangocms_snippet/models.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -72,8 +72,8 @@ class SnippetPtr(CMSPlugin):
7272
search_fields = ['snippet__html'] if SEARCH_ENABLED else []
7373

7474
class Meta:
75-
verbose_name = _('Snippet')
76-
verbose_name_plural = _('Snippets')
75+
verbose_name = _('Snippet Ptr')
76+
verbose_name_plural = _('Snippet Ptrs')
7777

7878
def __str__(self):
7979
# Return the referenced snippet's name rather than the default (ID #)

0 commit comments

Comments
 (0)