Skip to content

Instantly share code, notes, and snippets.

@godfather68
Last active September 22, 2020 10:57
Show Gist options
  • Save godfather68/51c144bce01a327c50f52605738b7e02 to your computer and use it in GitHub Desktop.
Save godfather68/51c144bce01a327c50f52605738b7e02 to your computer and use it in GitHub Desktop.
from django import forms
from .models import Customer, Request
class CreateRequestForm(forms.ModelForm):
customer = forms.CharField() # update
class Meta:
model = Request
fields = '__all__'
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment