Hello I tried something really simple but it didn't work as I expected.

from mezzanine.accounts.models import User
User().save()

I thought username and password were required fields so I was wondering why 
this code works and creates a user with no username and password.




*Something similar:*
from django.db.models import Model, CharField

models.py
class Something(Model):

name = CharField(max_length=255)



test.py
Something().save()


How can I make 'name' required?


Thanks for any help.

-- 
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/groups/opt_out.

Reply via email to