Ejemplo n.º 1
0
 def __init__(self, *args, **kwargs):
     if 'initial' in kwargs:
         if 'description' in kwargs['initial']:
             if kwargs['initial']['description']:
                 kwargs['initial']['description'] = utils.current_site_url() + \
                                                    kwargs['initial']['description']
     super(PartyForm, self).__init__(*args, **kwargs)
     self.profile_link_formset = None
     self.number = 0
Ejemplo n.º 2
0
    def __init__(self, *args, **kwargs):
        """Render form for creating and editing Party models, aka people.

        Removes profile link formset and renders proper description URL
        """
        if 'initial' in kwargs:
            if 'description' in kwargs['initial']:
                if kwargs['initial']['description']:
                    kwargs['initial']['description'] = utils.current_site_url() + \
                                                       kwargs['initial']['description']
        super(PartyForm, self).__init__(*args, **kwargs)
        self.profile_link_formset = None
        self.number = 0
Ejemplo n.º 3
0
    def __init__(self, *args, **kwargs):
        """Render form for creating and editing Party models, aka people.

        Removes profile link formset and renders proper description URL
        """
        if 'initial' in kwargs:
            if 'description' in kwargs['initial']:
                if kwargs['initial']['description']:
                    kwargs['initial']['description'] = utils.current_site_url() + \
                                                       kwargs['initial']['description']
        super(PartyForm, self).__init__(*args, **kwargs)
        self.profile_link_formset = None
        self.number = 0