class Image(models.Model):
    image = models.ImageField(upload_to='/PATH/site/files',
blank=True, unique=True)

    class Admin: pass

    def __str__(self):
        return self.image

class Client(models.Model):
    name = models.CharField(maxlength=255)
    street = models.CharField(maxlength=255)
    house_num = models.CharField(maxlength=4)
    house_level = models.CharField(maxlength=3, blank=True)
    tel_num = models.CharField(maxlength=19, blank=True)
    email = models.EmailField(blank=True)
    url = models.ForeignKey(Url, blank=True)
    image = models.ManyToManyField(Image, blank=True)

    class Admin: pass

    def __str__(self):
        return self.name

On Jan 25, 6:28 pm, Rajesh Dhawan <[EMAIL PROTECTED]> wrote:
> Hi,
>
> > Has anyone got any clues what's happening?
>
> You need to post your model code so people can help you find the
> problem.
>
> -Rajesh D
--~--~---------~--~----~------------~-------~--~----~
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 [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/django-users?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to