Hello everyone,

I followed instructions here to setup the public user profile on mezzanine 
cartridge. However, I seem to get this error so I can not move on-

http://mezzanine.jupo.org/docs/user-accounts.html

Below is the errors:

IntegrityError at /shop/checkout/NOT NULL constraint failed: myapp_myprofile
.date_of_birth

Request Method: GET
Request URL: http://myhost:7000/shop/checkout/
Django Version: 1.10.2
Exception Type: IntegrityError
Exception Value: NOT NULL constraint failed: myapp_myprofile.date_of_birth


another :

ntegrityError at /accounts/update/NOT NULL constraint failed: 
myapp_myprofile.date_of_birth

Request Method: GET
Request URL: http://myhost:7000/accounts/update/
Django Version: 1.10.2
Exception Type: IntegrityError
Exception Value: NOT NULL constraint failed: myapp_myprofile.date_of_birth




So anything I am clicking on a button relating to accounts and user.

in my models under myapp


class MyProfile(models.Model):
    user = models.OneToOneField("auth.User")
    date_of_birth = models.DateField()
    bio = models.TextField()



I have followed the instructions so I really do not understand my I am 
having this problem. If I needed  to signup or login the form pops. Errors 
occurs when I try to submit form for anything other button with user 
profile relation.


Cartridge==0.12.0
Django==1.10.2
Mezzanine==4.2.2

I have checked the migrations

migrations.CreateModel(
            name='MyProfile',
            fields=[
                ('id', models.AutoField(auto_created=True, primary_key=True, 
serialize=False, verbose_name='ID')),
                ('date_of_birth', models.DateField()),
                ('bio', models.TextField()),
                ('user', models.OneToOneField(on_delete=django.db.models.
deletion.CASCADE, to=settings.AUTH_USER_MODEL)),
            ],
        ),


seems like everything seem fine so why Im I getting this error?  It's not a 
bug is it?


Would very much appreciate your reply.

Thanking you.










-- 
You received this message because you are subscribed to the Google Groups 
"Mezzanine Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
For more options, visit https://groups.google.com/d/optout.

Reply via email to