python - Django 1.6 AbstractUser does not allow fields to be saved with HTML Form -


i extended user object in django 1.6 , added fields. have form allows user add username , irc name user object. when save using form, information not being committed database(not being saved). don't have errors , post form 200 ok.

class accountform(modelform):     class meta:         model = employee      def __init__(self, *args, **kwargs):         super(accountform, self).__init__(*args, **kwargs)         self.helper = formhelper()         self.helper.form_class = 'form-horizontal'         self.helper.label_class = 'col-lg-2 control-label'         self.helper.field_class = 'col-lg-4'          self.helper.layout = layout(             fieldset('account modify',                 'irc_name',                 'forum_username',                 ),             formactions(                 submit('submit', 'submit', css_class='btn-primary')                 )             )   class employee(abstractuser):     irc_name = models.charfield(max_length="25")     forum_username = models.charfield(max_length="25")   class accountmodify(loginrequiredmixin, updateview):     model = employee     form_class = accountform     template_name = 'bot_data/account_modify.html'     success_url = '/' 


Comments

Popular posts from this blog

php - SPIP: From Tag directly to an article -

jquery - isAjaxRequest always return false -

ruby on rails - In a controller spec, how to find a specific tag in the generated view? -