django.core.exceptions.FieldError: Related Field got invalid lookup: relation_type

2021-02-22 Thread Jonas Kiefer
Hi folks, i implemetned the following models: ```python class MetadataRelation(models.Model): id = models.UUIDField(default=uuid.uuid4, primary_key=True) from_metadata = models.ForeignKey('Metadata', on_delete=models.CASCADE, related_name='from_metadatas') to_metadata = models.ForeignKey('Metad

Re: Job related query

2021-02-22 Thread Raphael Polanco
Dear Group Members. Leaving personnel information on public forums is a security risk. Perhaps it's best to share directly with the interested party, Regards, R. Polanco On Sun, Feb 21, 2021 at 10:32 PM neha bhurke wrote: > If your are from mumbai location just mail me your resume > *Regard

django voluntary work.

2021-02-22 Thread Sharif Mehedi
Hello everybody, I am trying to start a career in development. I can work around any problem with python. I have gone through a fair amount of django documentation. I am looking forward to work as a volunteer on any professional django project that should boost my learning and also assist on buil

Re: AttributeError: type object 'User' has no attribute 'objects'

2021-02-22 Thread georgia...@gmail.com
Sorry I have the same similar problem, please help, thank you!! I put the question on stackoverflow, there are questions and reference materials attached. So you can click the link to enter : https://stackoverflow.com/questions/66310704/attributeerror-type-object-product-has-no-attribute-objects

Re: django voluntary work.

2021-02-22 Thread gilwell muhati
Hello @Sharif, Do you have any experience with the following:- 1. version control? git or svn? 2. docker? *Regards,Gilwell Muhati | +254 710 739 116 | * *~~“The mind is its own place and in itself can make a heaven of hell, a hell of heaven…”~~John Milton * On Mon, Feb 22, 2021 at 6:5

Why is this acting like a permanent redirect?

2021-02-22 Thread Robert F
I have a Django view that I redirect a user to after they login: # settings.py LOGIN_REDIRECT_URL = 'login-redirect' # account/urls.py urlpatterns = [ path('', include('django.contrib.auth.urls')), ... ] # home/views.py from account.models import Member d

Re: Why is this acting like a permanent redirect?

2021-02-22 Thread David Nugent
Hi Robert, To point out the most likely cause of the issue: LOGIN_REDIRECT_URL is a url, not a route name. Possibly could use a reverse_lazy('login-redirect') here after import django.urls, but - untested. Regards, David On 23 February 2021 at 07:07:52, Robert F (robert...@gmail.com

Re: Try to save multiple files using a one to many fields django

2021-02-22 Thread Ryan Nowakowski
On February 21, 2021 11:04:49 PM CST, jose angel encinas ramos wrote: >hello everyone, i working in my inventory django app, in this project i >try >to create a new area and in to each area has a posible to save >multiples >pdf. >so, when i try to save pdf in some new area have this error in

Help needed

2021-02-22 Thread neha bhurke
Hello everyone, I am trying to select the custom date but datetime=models.DateTimeField(auto_now=True) is only taking current date Please help me -- You received this message because you are subscribed to the Google Groups "Django users" group. To unsubscribe from this group and stop rec

Re: django voluntary work.

2021-02-22 Thread Sharif Mehedi
>>> Hello @Sharif, >>> Do you have any experience with the following:- >>> 1. version control? git or svn? 2. docker? >>>* Regards,* >>>* Gilwell Muhati | +254 710 739 116 |* >>>* ~~“The mind is its own place and in itself can make a heaven of hell, a hell of heaven…”~~John Milton

Re: Help needed

2021-02-22 Thread Omkar Parab
datetime=models.DateTimeField(auto_now=False) ? Or remove "auto_now" datetime=models.DateTimeField() On Tue, Feb 23, 2021, 11:34 AM neha bhurke wrote: > Hello everyone, > > I am trying to select the custom date but > datetime=models.DateTimeField(auto_now=True) > is only taking current date

Re: Help needed

2021-02-22 Thread neha bhurke
I have done all these codes but it is saving only the current date . Any other method *Regard,* *Neha Bhurke* *Precise Industrial Solutions Private Limited* Mob: +91 7738946067 I O: +91 22 28943214 Add: 115, 1st Floor, Hari Om Plaza, Behind Omkareshwar Mandir, Near National Park, Borivali (E), M

Re: Help needed

2021-02-22 Thread Danny
Maybe it is not related to the model definition, but rather the .save() object? On Tuesday, February 23, 2021 at 1:52:04 PM UTC+7 bhurk...@gmail.com wrote: > I have done all these codes but it is saving only the current date . > Any other method > *Regard,* > *Neha Bhurke* > > *Precise Industri

Re: Help needed

2021-02-22 Thread neha bhurke
I have created the form this is my views.py. def newdata(request): if request.method == "POST": MyDataform = Dataform(request.POST) if MyDataform.is_valid(): MyDataform.save() results = machinelist.objects.all() #result = data.objects.all()