a guest Jul 21st, 2018 58 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
- class Book(models.Model):
- author = models.CharField(max_length=100)
- title = models.CharField(max_length=100)
- languages = models.ManyToManyField(Languages, related_name='book_language')
- price = models.DecimalField(max_digits=5)
- class BookForm(forms.ModelForm):
- multi_pricing = forms.CharField(widget=forms.HiddenInput())
- pricing_type = forms.CharField(widget=forms.HiddenInput())
- class Meta:
- model = Book
- fields = '__all__'
RAW Paste Data