Re: Id error

2012-08-31 Thread Drvanon
> In your CountryForm, calling super(self.__class__)... might not be a > good idea. You should name the class, ie. > > super(CountryForm, self).save(*args, **kwargs) > Just did that, had no effect. > I'd also be wary of defining a class called 'Object', since python > already has '

Id error

2012-08-31 Thread Drvanon
object.use() if not needed_materials: self.usable = True # the forms.py of course from django import forms from django.forms import HiddenInput from main.models import Country, Object class CountryForm(forms.ModelForm): def save(self, *args, **kwargs):