Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- ("Table 'trades.main_trade' doesn't exist")
- class SomeModel(models.Model):
- data = models.CharField(max_length=100)
- def save(self):
- super(SomeModel, self).save(using='dataset')
- class DataForm(forms.ModelForm):
- class Meta:
- model = Trade
- fields = ("data",)
- def save(self, commit=True):
- send = super(SomeModel, self).save(commit=False)
- if commit:
- send.save()
- return send
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement