From 69626a8ff241545c4bd97a579c33af92e6d6170e Mon Sep 17 00:00:00 2001 From: fefa4ka Date: Thu, 22 Dec 2016 12:00:20 +0300 Subject: [PATCH] print version and marks --- trademark/models.py | 2 +- trademark/templates/trademark/form.html | 8 +++----- trademark/templates/trademark/search_detail.html | 14 +++++++------- .../templates/trademark/trademark_detail.html | 10 +++++----- 4 files changed, 16 insertions(+), 18 deletions(-) diff --git a/trademark/models.py b/trademark/models.py index d8b3ffb..1515341 100644 --- a/trademark/models.py +++ b/trademark/models.py @@ -269,7 +269,7 @@ class Search(models.Model): for nice_id, nice_description in trademark['icgs'].iteritems(): if nice_description[0:1].isdigit(): - nice_description = nice_description[nice_description.find('-'):] + nice_description = nice_description[nice_description.find('-') + 1:].strip() nice_obj, created = Nice.objects.get_or_create(nice_id=nice_id) product, created = Product.objects.get_or_create(nice=nice_obj, title=nice_description) instance.products.add(product) diff --git a/trademark/templates/trademark/form.html b/trademark/templates/trademark/form.html index 45554cc..b5eb686 100644 --- a/trademark/templates/trademark/form.html +++ b/trademark/templates/trademark/form.html @@ -1,5 +1,5 @@ -{% block trademark_content %} -