Fix circular imports and correct hosting order link
This commit is contained in:
		
					parent
					
						
							
								f089892c90
							
						
					
				
			
			
				commit
				
					
						7db3dc4222
					
				
			
		
					 1 changed files with 4 additions and 2 deletions
				
			
		| 
						 | 
					@ -2,7 +2,7 @@ import datetime
 | 
				
			||||||
import logging
 | 
					import logging
 | 
				
			||||||
 | 
					
 | 
				
			||||||
from django import template
 | 
					from django import template
 | 
				
			||||||
from django.core.urlresolvers import resolve, reverse, reverse_lazy
 | 
					from django.core.urlresolvers import resolve, reverse
 | 
				
			||||||
from django.utils.safestring import mark_safe
 | 
					from django.utils.safestring import mark_safe
 | 
				
			||||||
from django.utils.translation import activate, get_language, ugettext_lazy as _
 | 
					from django.utils.translation import activate, get_language, ugettext_lazy as _
 | 
				
			||||||
 | 
					
 | 
				
			||||||
| 
						 | 
					@ -85,7 +85,9 @@ def get_line_item_from_hosting_order_charge(hosting_order_id):
 | 
				
			||||||
            product_name=hosting_order.generic_product.product_name.capitalize(),
 | 
					            product_name=hosting_order.generic_product.product_name.capitalize(),
 | 
				
			||||||
            created_at=hosting_order.created_at.strftime('%Y-%m-%d'),
 | 
					            created_at=hosting_order.created_at.strftime('%Y-%m-%d'),
 | 
				
			||||||
            total='%.2f' % (hosting_order.price),
 | 
					            total='%.2f' % (hosting_order.price),
 | 
				
			||||||
            receipt_url=reverse_lazy('hosting:login', hosting_order.id),
 | 
					            receipt_url=reverse('hosting:orders',
 | 
				
			||||||
 | 
					                                kwargs={'pk': hosting_order.id}),
 | 
				
			||||||
 | 
					
 | 
				
			||||||
            see_invoice_text=_("See Invoice")
 | 
					            see_invoice_text=_("See Invoice")
 | 
				
			||||||
        ))
 | 
					        ))
 | 
				
			||||||
    else:
 | 
					    else:
 | 
				
			||||||
| 
						 | 
					
 | 
				
			||||||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue