Commit 577098c7 by Oláh István Gergely

dashboard: fix pip coding style

parent 8fd80cf1
from datetime import timedelta from datetime import timedelta
from django import forms
from vm.models import InstanceTemplate, Lease, InterfaceTemplate, Node
from storage.models import Disk
from firewall.models import Vlan, Host
from crispy_forms.helper import FormHelper from crispy_forms.helper import FormHelper
from crispy_forms.layout import (Layout, Div, BaseInput, from crispy_forms.layout import (
Field, HTML, Submit, Fieldset) Layout, Div, BaseInput, Field, HTML, Submit, Fieldset, TEMPLATE_PACK
from crispy_forms.layout import TEMPLATE_PACK )
from crispy_forms.utils import render_field from crispy_forms.utils import render_field
from django import forms
from django.forms.widgets import TextInput
from django.template import Context from django.template import Context
from django.template.loader import render_to_string from django.template.loader import render_to_string
from django.forms.widgets import TextInput
from django.forms import ModelForm
from crispy_forms.bootstrap import FormActions
from django.forms.models import BaseInlineFormSet
from django.utils.translation import ugettext as _ from django.utils.translation import ugettext as _
from firewall.models import Vlan, Host
from storage.models import Disk
from vm.models import InstanceTemplate, Lease, InterfaceTemplate, Node
VLANS = Vlan.objects.all() VLANS = Vlan.objects.all()
DISKS = Disk.objects.exclude(type="qcow2-snap") DISKS = Disk.objects.exclude(type="qcow2-snap")
...@@ -425,7 +422,7 @@ class NodeForm(forms.ModelForm): ...@@ -425,7 +422,7 @@ class NodeForm(forms.ModelForm):
), ),
css_class="row", css_class="row",
), ),
Div( # nested host Div( # nested host
HTML("""{% load crispy_forms_tags %} HTML("""{% load crispy_forms_tags %}
{% crispy hostform %} {% crispy hostform %}
""") """)
......
...@@ -147,6 +147,3 @@ class Node(TimeStampedModel): ...@@ -147,6 +147,3 @@ class Node(TimeStampedModel):
@permalink @permalink
def get_absolute_url(self): def get_absolute_url(self):
return ('dashboard.views.node-detail', None, {'pk': self.id}) return ('dashboard.views.node-detail', None, {'pk': self.id})
def pr():
print "irdki"
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or sign in to comment