Re: problem representation

2007-06-06 Thread Alfonso Ali
another option could be use the contenttype framework, it's not well documented but using the source and examples could help, take a look here http://feh.holsman.net/articles/2006/06/03/django-contenttype to get an idea about the framework and links to examples. Regards, Ali On 6/4/07, Joseph He

Re: any django users in Cuba?

2007-06-06 Thread Alfonso Ali
yes, at least in infomed we are two, i even offered two conferences about django, one as part of Lihab-LUG meeting's and the other as part of a course about python and free software, so i expect the number of users increase with the time ;), i also have in plan a course specifically about django fo

Re: Newforms / Validation / Uniqueness

2007-05-30 Thread Alfonso Ali
My solution is to use the base class parameter of form_for_[model|instance] function, for example: class SomeTest(models.Model): name = models.CharField(maxlength=50) user = models.ForeignKey(User) class Meta: unique_together = (('user', 'name'),) class SomeTestBaseForm(forms.Base