getting uRL fix
This commit is contained in:
+2
-1
@@ -599,11 +599,12 @@ INSERT INTO subscription_options_items (option_name,description,list_order)
|
|||||||
VALUES('PREMIUM001','',0);
|
VALUES('PREMIUM001','',0);
|
||||||
|
|
||||||
|
|
||||||
|
DROP TABLE subscription_generative;
|
||||||
|
|
||||||
CREATE TABLE subscription_generative(
|
CREATE TABLE subscription_generative(
|
||||||
id SERIAL,
|
id SERIAL,
|
||||||
uid uuid DEFAULT uuid_generate_v4(),
|
uid uuid DEFAULT uuid_generate_v4(),
|
||||||
member_id INT REFERENCES members(id) UNIQUE NOT NULL,
|
member_id INT REFERENCES members(id),
|
||||||
practice VARCHAR(100) NOT NULL,
|
practice VARCHAR(100) NOT NULL,
|
||||||
specialization VARCHAR(100) NOT NULL,
|
specialization VARCHAR(100) NOT NULL,
|
||||||
product_id VARCHAR(25) NOT NULL,
|
product_id VARCHAR(25) NOT NULL,
|
||||||
|
|||||||
@@ -197,12 +197,10 @@ class MyProductsService(BaseService):
|
|||||||
|
|
||||||
# getting the url-name part
|
# getting the url-name part
|
||||||
url_name_part = str(random.randint(100000, 999999)) # Starr with random numbers
|
url_name_part = str(random.randint(100000, 999999)) # Starr with random numbers
|
||||||
member_profile_data = MembersProfile.get_member_profile_by_profile_uid(uid)
|
member_profile_data = MembersProfile.get_member_profile_by_member_id(member_id)
|
||||||
if member_profile_data and member_profile_data.url_name != None:
|
if member_profile_data and member_profile_data.url_name != None:
|
||||||
url_name_part = member_profile_data.url_name
|
url_name_part = member_profile_data.url_name
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
product_id = validated_data.get('product_id')
|
product_id = validated_data.get('product_id')
|
||||||
product_data = Products.get_product_by_product_id(product_id)
|
product_data = Products.get_product_by_product_id(product_id)
|
||||||
configured_start_url = product_data.start_url
|
configured_start_url = product_data.start_url
|
||||||
|
|||||||
Reference in New Issue
Block a user