Re: Little baffled: object has no attribute 'save' only when running tests.

2014-11-24 Thread Detectedstealth
Never mind I need some sleep I named my TestCase with the same name as my model... I can't believe I didn't see that. class FishType(TestCase): On Monday, November 24, 2014 2:31:33 PM UTC-8, Detectedstealth wrote: > > When writing a test to just try and create an object from my model I get > th

Little baffled: object has no attribute 'save' only when running tests.

2014-11-24 Thread Detectedstealth
When writing a test to just try and create an object from my model I get the following error: line 10, in test_saving_and_retrieving_fishtypes test2.save() AttributeError: 'FishType' object has no attribute 'save' tests.py from django.test import TestCase from trip.models import FishTy