> 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 '
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):
2 matches
Mail list logo