add link to price

This commit is contained in:
Cayo Puigdefabregas 2023-01-31 12:38:47 +01:00
parent 253371376d
commit 00c07161e0
2 changed files with 2 additions and 2 deletions

View File

@ -67,7 +67,6 @@ class DeviceListMixin(GenericMixin):
page = int(request.args.get('page', 1)) page = int(request.args.get('page', 1))
per_page = int(request.args.get('per_page', PER_PAGE)) per_page = int(request.args.get('per_page', PER_PAGE))
filter = request.args.get('filter', "All+Computers") filter = request.args.get('filter', "All+Computers")
# import pdb; pdb.set_trace()
lots = self.context['lots'] lots = self.context['lots']
form_filter = FilterForm(lots, lot_id, all_devices=all_devices) form_filter = FilterForm(lots, lot_id, all_devices=all_devices)

View File

@ -1,4 +1,5 @@
import flask import flask
from decouple import config
from flask import Blueprint from flask import Blueprint
from flask import current_app as app from flask import current_app as app
from flask import g from flask import g
@ -46,7 +47,7 @@ class LoginView(View):
url_reset_password = "#" url_reset_password = "#"
if 'register' in app.blueprints.keys(): if 'register' in app.blueprints.keys():
url_register = flask.url_for('register.user-registration') url_register = config("PRICES_PAGE", "#")
if 'reset_password' in app.blueprints.keys(): if 'reset_password' in app.blueprints.keys():
url_reset_password = flask.url_for('reset_password.reset-password') url_reset_password = flask.url_for('reset_password.reset-password')