Added DjangoHostingView test, Added RailsHostingView test, Added, NodeJSHostingView test, Changed VMPlan model, Fixed templates to support new relationship between orders and VMplans, Merged Calendar feature with Booking
This commit is contained in:
parent
bf0e152789
commit
14f78893d5
9 changed files with 106 additions and 15 deletions
|
|
@ -4,5 +4,6 @@ from django.db import models
|
|||
class VMPlansManager(models.Manager):
|
||||
|
||||
def active(self, user, **kwargs):
|
||||
return self.select_related('hostingorder__customer__user').\
|
||||
filter(hostingorder__customer__user=user, hostingorder__approved=True, **kwargs)
|
||||
return self.prefetch_related('hosting_orders__customer__user').\
|
||||
filter(hosting_orders__customer__user=user, hosting_orders__approved=True, **kwargs)\
|
||||
.distinct()
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue