# Path: pytask/profile/forms.py
# class CreateProfileForm(forms.ModelForm):
# 
#     class Meta:
#         model = Profile
#         exclude = ['pynts', 'role']


from pytask.profile.forms import CreateProfileForm
from registration.signals import user_registered
# This file is part of PyTask.
#
# PyTask is free software: you can redistribute it and/or modify it
# under the terms of the GNU Affero General Public License as published
# by the Free Software Foundation, either version 3 of the License, or
# (at your option) any later version.
#
# PyTask is distributed in the hope that it will be useful, but WITHOUT
# ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
# FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License
# for more details.
#
# You should have received a copy of the GNU General Public License
# along with PyTask.  If not, see <http://www.gnu.org/licenses/>.


__authors__ = [
    '"Madhusudan.C.S" <madhusudancs@fossee.in>',
    '"Nishanth Amuluru" <nishanth@fossee.in>',
    ]





def user_created(sender, user, request, **kwargs):
    data = request.POST.copy()
    data.update({
      "user": user.id,
      })

# Path: pytask/profile/forms.py
# class CreateProfileForm(forms.ModelForm):
# 
#     class Meta:
#         model = Profile
#         exclude = ['pynts', 'role']


# Path: pytask/profile/regbackend.py
from pytask.profile.forms import CreateProfileForm
from registration.signals import user_registered

# This file is part of PyTask.
#
# PyTask is free software: you can redistribute it and/or modify it
# under the terms of the GNU Affero General Public License as published
# by the Free Software Foundation, either version 3 of the License, or
# (at your option) any later version.
#
# PyTask is distributed in the hope that it will be useful, but WITHOUT
# ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
# FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License
# for more details.
#
# You should have received a copy of the GNU General Public License
# along with PyTask.  If not, see <http://www.gnu.org/licenses/>.


__authors__ = [
    '"Madhusudan.C.S" <madhusudancs@fossee.in>',
    '"Nishanth Amuluru" <nishanth@fossee.in>',
    ]





def user_created(sender, user, request, **kwargs):
    data = request.POST.copy()
    data.update({
      "user": user.id,
      })

    form = CreateProfileForm(data)