I want to call three models into one form on my page but it doens't like the way that i am doing it. Any help would be awesome if i call them idividually it just displaces the last one i call.
from django import forms from .models import Customer, Vms, Vmspecs class SignUpForm(forms.ModelForm): class Meta: model = (Customer, Vms, Vmspecs) so thats my code but it doesnt work it gives me the following error Environment: Request Method: GET Request URL: http://23.239.206.142:8000/ Django Version: 1.6.4 Python Version: 2.7.3 Installed Applications: ('django.contrib.admin', 'django.contrib.auth', 'django.contrib.contenttypes', 'django.contrib.sessions', 'django.contrib.messages', 'django.contrib.staticfiles', 'vmware') Installed Middleware: ('django.contrib.sessions.middleware.SessionMiddleware', 'django.middleware.common.CommonMiddleware', 'django.middleware.csrf.CsrfViewMiddleware', 'django.contrib.auth.middleware.AuthenticationMiddleware', 'django.contrib.messages.middleware.MessageMiddleware', 'django.middleware.clickjacking.XFrameOptionsMiddleware') Traceback: File "/usr/local/lib/python2.7/dist-packages/django/core/handlers/base.py" in get_response 101. resolver_match = resolver.resolve(request.path_info) File "/usr/local/lib/python2.7/dist-packages/django/core/urlresolvers.py" in resolve 337. for pattern in self.url_patterns: File "/usr/local/lib/python2.7/dist-packages/django/core/urlresolvers.py" in url_patterns 365. patterns = getattr(self.urlconf_module, "urlpatterns", self.urlconf_module) File "/usr/local/lib/python2.7/dist-packages/django/core/urlresolvers.py" in urlconf_module 360. self._urlconf_module = import_module(self.urlconf_name) File "/usr/local/lib/python2.7/dist-packages/django/utils/importlib.py" in import_module 40. __import__(name) File "/root/djangoprojects/provisioning/provisioning/urls.py" in <module> 7. url(r'^customers/', include('vmware.urls')), File "/usr/local/lib/python2.7/dist-packages/django/conf/urls/__init__.py" in include 26. urlconf_module = import_module(urlconf_module) File "/usr/local/lib/python2.7/dist-packages/django/utils/importlib.py" in import_module 40. __import__(name) File "/root/djangoprojects/provisioning/vmware/urls.py" in <module> 5. from vmware import views File "/root/djangoprojects/provisioning/vmware/views.py" in <module> 6. from .forms import SignUpForm File "/root/djangoprojects/provisioning/vmware/forms.py" in <module> 4. class SignUpForm(forms.ModelForm): File "/usr/local/lib/python2.7/dist-packages/django/forms/models.py" in __new__ 282. opts.help_texts, opts.error_messages) File "/usr/local/lib/python2.7/dist-packages/django/forms/models.py" in fields_for_model 175. opts = model._meta Exception Type: AttributeError at / Exception Value: 'tuple' object has no attribute '_meta' -- You received this message because you are subscribed to the Google Groups "Django users" group. To unsubscribe from this group and stop receiving emails from it, send an email to django-users+unsubscr...@googlegroups.com. To post to this group, send email to django-users@googlegroups.com. Visit this group at http://groups.google.com/group/django-users. To view this discussion on the web visit https://groups.google.com/d/msgid/django-users/e15d6544-0a36-432a-b1d9-7db14284d10f%40googlegroups.com. For more options, visit https://groups.google.com/d/optout.