Guest User

Untitled

a guest
Jul 21st, 2018
83
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.46 KB | None | 0 0
  1. class Book(models.Model):
  2. author = models.CharField(max_length=100)
  3. title = models.CharField(max_length=100)
  4. languages = models.ManyToManyField(Languages, related_name='book_language')
  5. price = models.DecimalField(max_digits=5)
  6.  
  7. class BookForm(forms.ModelForm):
  8. multi_pricing = forms.CharField(widget=forms.HiddenInput())
  9. pricing_type = forms.CharField(widget=forms.HiddenInput())
  10. class Meta:
  11. model = Book
  12. fields = '__all__'
Add Comment
Please, Sign In to add comment