You had the correct approach commented out, why?

https://docs.djangoproject.com/en/1.11/ref/models/querysets/#get-or-create get_or_create returns a tuple of the form (object, created [boolean]).

What you'd want to do is split out the result of that command:

objx, created = GoogleProperty.objects.get_or_create(google_email=current_user)

Then you can do:

if not created:
    objx.view_id = view_id
    objx.save()
Answer from mechanical_meat on Stack Overflow
🌐
Quora
quora.com › Why-Django-through-tuple-object-has-no-attribute-get
Why Django through, tuple object has no attribute get? - Quora
Answer (1 of 5): This isn’t a Django question, it’s a Python question. Tuples have no get() method because they don’t need them. Dictionaries have them to facilitate fetching an element by key, but tuples have no keys. Lists, like tuples, have no keys and also do not have get() methods.
Discussions

django get_or_create return error: 'tuple' object has no attribute - Stack Overflow
I am new to django and I am trying to use get_or_create model function but I get an error even I have the attribute in my model AttributeError at /professor/adicionar-compromisso 'tuple' object ha... More on stackoverflow.com
🌐 stackoverflow.com
Django AttributeError: 'tuple' object has no attribute 'get'
Probably because of now=datetime.datetime.now() Try this instead: now=datetime.datetime.strftime( datetime.datetime.now (), '%Y-%m-%d') your variable 'now' will be a string instead of i.e. 2020-03-08 More on reddit.com
🌐 r/django
2
0
March 8, 2020
python - AttributeError 'tuple' object has no attribute 'get' - Stack Overflow
I have a Django application. But i can't an error that i have been struggling with for some time now. Exception Value: 'tuple' object has no attribute 'get' Exception Location: /Library/Python/2.... More on stackoverflow.com
🌐 stackoverflow.com
python - AttributeError: 'tuple' object has no attribute '_meta' error in Django - Stack Overflow
File "C:\Users\tonik\OneDrive\... "C:\Users\tonik\AppData\Local\Programs\Python\Python36\lib\site-packages\django\forms\models.py", line 139, in fields_for_model opts = model._meta AttributeError: 'tuple' object has no attribute '_meta'... More on stackoverflow.com
🌐 stackoverflow.com
🌐
Django
code.djangoproject.com › ticket › 32024
#32024 (AttributeError: 'tuple' object has no attribute 'startswith') – Django
manage.py@dev > migrate ... File "/proj/env/lib/python3.8/site-packages/django/db/backends/mysql/operations.py", line 176, in quote_name if name.startswith("`") and name.endswith("`"): AttributeError: 'tuple' object has no attribute 'startswith'...
🌐
Django
code.djangoproject.com › ticket › 2115
#2115 ('tuple' object has no attribute 'startswith') – Django
File "/usr/lib64/python2.4/sit...MEDIA_ROOT)): File "/usr/lib64/python2.4/posixpath.py" in normpath ... Have a look in your settings.py file and check that the MEDIA_ROOT line does not end with a comma. It looks like you are passing in a one-tuple, rather than a string, based ...
Find elsewhere
🌐
DaniWeb
daniweb.com › programming › software-development › threads › 427258 › django-problem-tuple-object-has-no-attribute-save
Django problem : "'tuple' object has no attribute 'save'"
July 5, 2012 - So I'm trying to create a database and store data, that I get from django forms. Everything looks fine, and when I manually check database it shows that it recieved a new row, however my browser gives me this message and do not redirect me: AttributeError at /teacher/ 'tuple' object has no attribute 'save' Request Method: POST Request URL: http://127.0.0.1:8000/teacher/ Django Version: 1.3 Exception Type: AttributeError Exception Value: 'tuple' object has no attribute 'save' Exception Location: /home/serg/python/Books/Books/../Books/BookList/views.py in teacher_form_page, line 107 Python Executable: /usr/bin/python Python Version: 2.7.2
🌐
Reddit
reddit.com › r/django › attributeerror: 'tuple' object has no attribute 'encode'
r/django on Reddit: AttributeError: 'tuple' object has no attribute 'encode'
August 13, 2020 -

I am creating a Contact page for my django project. forms.py has name, subject, sender and message. Here's the view:

And the form:

<form method="POST">

{%csrf_token%}

{{form.as_p}}

<button type="submit">Send</button>

</form>

After I click Send I get this error: AttributeError: 'tuple' object has no attribute 'encode' and I can't seem to figure out what's wrong despite checking other questions of the same type.

I am using google SMTP server, from this link following its instructions.

🌐
LearnDataSci
learndatasci.com › solutions › python-attributeerror-tuple-object-has-no-attribute
Python AttributeError: 'tuple' object has no attribute – LearnDataSci
The error AttributeError: 'tuple' object has no attribute is caused when treating the values within a tuple as named attributes.
🌐
GitHub
github.com › deschler › django-modeltranslation › issues › 498
AttributeError: 'tuple' object has no attribute '__module__' · Issue #498 · deschler/django-modeltranslation
March 15, 2019 - File "/usr/src/app/gametype/tr... line 181, in NewMultilingualManager _old_module = manager.__module__ AttributeError: 'tuple' object has no attribute '__module__' My django is 1.9.2 and my python is 2.7.13....
Author   Dean-Christian-Armada
🌐
Reddit
reddit.com › r/django › 'tuple' object has no attribute '_default_manager' error has me confused. doesn't seem to google well?
r/django on Reddit: 'tuple' object has no attribute '_default_manager' Error has me confused. Doesn't seem to google well?
August 1, 2015 -

The only google entry with the same error code was in relation to extending the User model, which I'm not doing. This error occurs after I submit the PaperEstimate form which of course uses django-braces. Is there a _default_manager in Braces that could be throwing an error based on the way I'm implementing Braces?

I'm having a hard time understanding what is going on when I get a traceback that doesn't include my own code. Could this be related to django-braces? Or maybe from my using generic class based views?

The Traceback: http://pastebin.com/Z4M26UR5 Relevant Code: http://pastebin.com/qY5Wpdjw

🌐
Javaexercise
javaexercise.com › python › attributeerror-tuple-object-has-no-attribute-get-in-python
[Fixed]: AttributeError Tuple Object Has No Attribute Get | Python | Django - Javaexercise
July 21, 2022 - The "AttributeError tuple object has no attribute get" error is common while working with the tuple. Since tuple does not allow this get() method so you must use indexing to access the elements. Even in Django, you must use the render() method to avoid any such error.
🌐
Google Groups
groups.google.com › g › django-users › c › W4JH2P8JzmM
'tuple' object has no attribute 'has_header'
You're view is returning a tuple insteaed of an HttpResponse object somewhere.