Related ticket (currently closed):
http://code.djangoproject.com/ticket/871

At some point I have lost the ability to save this model in the admin
interface as it refuses to honor blank=True in the model. There is
already an image saved to each of these models which I do not want to
change, but when I attempt to update it, it keeps returning with
"Enter a valid filename." for the "photo" field.  I am using revision
7121 (latest at the time of this writing).

{{{

from django.db import models

class StaffMember(models.Model):
    name = models.CharField(max_length=100, unique=True)
    slug = models.SlugField(prepopulate_from=("name",))
    title = models.CharField(max_length=100)
    email = models.EmailField(unique=True)
    summary = models.TextField()
    bio = models.TextField(blank=True)
    photo = models.ImageField(upload_to="img/staff/", blank=True)
    order = models.PositiveIntegerField(default=100)
    active = models.BooleanField(default=True)

}}}
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"Django users" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/django-users?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to