Hi, thanks for the reply.

ImageWithThumbsField is custom field which extends ImageField. It
creates a thumbnail. I am using it in my model definition, nothing to
do with a form. syncdb is ignoring this field when it creates the
table completely.

On 23 Aug, 18:39, Daniel Roseman <dan...@roseman.org.uk> wrote:
> On Aug 23, 3:44 pm, Hanpan <scenesh...@googlemail.com> wrote:
>
> > Hi,
>
> > I have created a custom field type, which I am using like so:
>
> > image_thumb = ImageWithThumbsField(_('preview image'),
> > upload_to='uploads/projects')
>
> > But for some reason, when I run syncdb this custom field is being
> > completely ignored. I tried using the 'widget' argument, but that
> > caused an error. I also tried 'formfield_for_dbfield' in the admin.py,
> > but that didn't help at all.
>
> > Any suggestions?
>
> You seem to be confusing model fields with form fields. Where are you
> using this field, in a model or form definition? What are you
> expecting syncdb to do, and what is it actually doing?
> --
> DR.
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"Django users" group.
To post to this group, send email to django-users@googlegroups.com
To unsubscribe from this group, send email to 
django-users+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/django-users?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to