from django import forms
from simplegraph.models import Node, Edge, NodeType, EdgeType

class NodeForm(forms.ModelForm):
    
    def clean(self):
        return self.cleaned_data    
    
    class Meta:
        model = Node
        
class BaseEdgeForm(forms.ModelForm):

    class Meta:
        model = Edge
        
class EdgeForm(BaseEdgeForm):
    
    id = forms.IntegerField(widget=forms.HiddenInput())
    
    
class ParentForm(EdgeForm):
    
    child = forms.IntegerField(widget=forms.HiddenInput())
      
    
class ChildForm(EdgeForm):

    parent = forms.IntegerField(widget=forms.HiddenInput())    
    

1a1190822247afddbd9359c34b96de90ce6786cb
<mask token>


class EdgeForm(BaseEdgeForm):
    <mask token>


class ParentForm(EdgeForm):
    child = forms.IntegerField(widget=forms.HiddenInput())


class ChildForm(EdgeForm):
    parent = forms.IntegerField(widget=forms.HiddenInput())

<mask token>


class EdgeForm(BaseEdgeForm):
    id = forms.IntegerField(widget=forms.HiddenInput())


class ParentForm(EdgeForm):
    child = forms.IntegerField(widget=forms.HiddenInput())


class ChildForm(EdgeForm):
    parent = forms.IntegerField(widget=forms.HiddenInput())

<mask token>


class BaseEdgeForm(forms.ModelForm):


    class Meta:
        model = Edge


class EdgeForm(BaseEdgeForm):
    id = forms.IntegerField(widget=forms.HiddenInput())


class ParentForm(EdgeForm):
    child = forms.IntegerField(widget=forms.HiddenInput())


class ChildForm(EdgeForm):
    parent = forms.IntegerField(widget=forms.HiddenInput())

<mask token>


class NodeForm(forms.ModelForm):

    def clean(self):
        return self.cleaned_data


    class Meta:
        model = Node


class BaseEdgeForm(forms.ModelForm):


    class Meta:
        model = Edge


class EdgeForm(BaseEdgeForm):
    id = forms.IntegerField(widget=forms.HiddenInput())


class ParentForm(EdgeForm):
    child = forms.IntegerField(widget=forms.HiddenInput())


class ChildForm(EdgeForm):
    parent = forms.IntegerField(widget=forms.HiddenInput())

from django import forms
from simplegraph.models import Node, Edge, NodeType, EdgeType

class NodeForm(forms.ModelForm):
    
    def clean(self):
        return self.cleaned_data    
    
    class Meta:
        model = Node
        
class BaseEdgeForm(forms.ModelForm):

    class Meta:
        model = Edge
        
class EdgeForm(BaseEdgeForm):
    
    id = forms.IntegerField(widget=forms.HiddenInput())
    
    
class ParentForm(EdgeForm):
    
    child = forms.IntegerField(widget=forms.HiddenInput())
      
    
class ChildForm(EdgeForm):

    parent = forms.IntegerField(widget=forms.HiddenInput())    
    
