Hi, Martin.

Thanks for your reply.

I wound up using IntigerFields and getting around the "relation must be an 
instance" error by adding clean methods that returned instances, e.g.

def clean_myfield(self):

    data = self.cleaned_data['myfield']

                  data = MyRelatedClass.objects.get(pk=data)
         return data 

 

 

-- 
You received this message because you are subscribed to the Google Groups 
"Django users" group.
To view this discussion on the web visit 
https://groups.google.com/d/msg/django-users/-/_jB5tGZy9zsJ.
To post to this group, send email to [email protected].
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