Hey Everyone,

I can't make my django admin to stop bugging me about all fields being
required. I placed a (blank=True) on my address2 field below, but it
has no effect on the admin site. Please help.

While you are at it, can you check to see if I have it setup right if I
want to make a friend chain that every person can have many other
friends (persons) of its own type?

Thanks in advance,
Armin


class Person(meta.Model):
    # Book keeping data
    register_date = meta.DateTimeField('date published')
    updated_date = meta.DateTimeField('last updated',
auto_now_add=True)

    # Contact Info.
    address1 = meta.CharField(maxlength=250, blank=True)
    address2 = meta.CharField(maxlength=250, blank=True)
    city = meta.CharField(maxlength=250)
    state = meta.USStateField()
    zip = meta.CharField(maxlength=250)
    phone = meta.PhoneNumberField()

    # Personal Info.
    first_name = meta.CharField(maxlength=200)
    last_name = meta.CharField(maxlength=200)
    birth_date = meta.DateField('birth date')
    height = meta.CharField(maxlength=5)
    # photo = meta.ImageField(upload_to='people')

    # Contact Info.
    address1 = meta.CharField(maxlength=250)
    address2 = meta.CharField(maxlength=250)
    city = meta.CharField(maxlength=250)
    state = meta.USStateField()
    zip = meta.CharField(maxlength=250)
    phone = meta.PhoneNumberField()

    # Relationships
    friend = meta.ForeignKey('self', related_name='friend', blank=True)

Reply via email to