daily pastebin goal
16%
SHARE
TWEET

Untitled

a guest Jul 21st, 2018 58 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  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__'
RAW Paste Data
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy. OK, I Understand
 
Top