Re: model validation errors

2009-09-01 Thread alain31
Ok so I will write a custom form. I think that I will also write a custom field to do some specific things (for example add a url method to get png ...). I need to understand better the methods : - contribute_to_class, -validate, validate_full -formfield I found nothing in django's doc, and

Re: model validation errors

2009-09-01 Thread Thomas Guettler
Hi, Up to now Model Validation is not possible with django. You need to use a ModelForm. The documentation contains examples how to do custom validation. alain31 schrieb: > Hello, I wrote a model to manage small TeX fragments: > > class LaTeX(models.Model): > latex =

model validation errors

2009-08-31 Thread alain31
Hello, I wrote a model to manage small TeX fragments: class LaTeX(models.Model): latex = models.TextField(help_text="Un extrait de source LaTeX") macros = models.ForeignKey(Macros) For now, I override save() to compile the latex string using macros strings with LaTeX compilator, and

Re: Model validation errors ...

2006-11-09 Thread ZebZiggle
Ah ... of course. Thanks James! Keep up the great work! -Sandy --~--~-~--~~~---~--~~ 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

Re: Re: Model validation errors ...

2006-11-09 Thread James Bennett
On 11/9/06, ZebZiggle <[EMAIL PROTECTED]> wrote: > My question is ... why is Accusation any different tan Message, > ReadMessage or any of the other tables that relate back to Player? The problem was that Accusation has *two* fields which relate to Player. When 'related_name' isn't set, that

Re: Model validation errors ...

2006-11-09 Thread ZebZiggle
More on this: If I change Accusation to: class Accusation(models.Model): game = models.ForeignKey(Game) player = models.ForeignKey(Player, related_name='related_player') accusedPlayer = models.ForeignKey(Player, related_name='related_accusedPlayer') isCommitted =

Model validation errors ...

2006-11-09 Thread ZebZiggle
Hi there, I've decided to drop my old 0.91 database and rebuild, rather than try to upgrade it. So, in my dev environment I've dropped the database, but now when I try to 'syncdb' I get the following validation error. Error: Couldn't install apps, because there were errors in one or more