Re: Django update one field by DeleteView

2018-12-11 Thread Derek
Have a look at: https://github.com/grantmcconnaughey/django-field-history and https://django-simple-history.readthedocs.io/en/latest/ On Tuesday, 11 December 2018 14:31:22 UTC+2, Rupam Hazra wrote: > > Hi all, > > I have project model.one functionality is when a project delete only* > is_dele

Re: Help with data bound ModelChoiceField

2018-12-11 Thread progmgppers
TY madjardi for all your input! I continued to search and found what I wanted. But I still need to understand how it all works. I know it is an initiation function on the form but not sure how variables are transported around to give me the results. But I think I can dig further to find out. He

Re: Help with data bound ModelChoiceField

2018-12-11 Thread maunish dave
I think you should just call all object instead of using values ( ) and __str__ will give you the names of customer I am not sure but this should work On Wed 12 Dec, 2018, 3:46 AM madjardi, wrote: > aybe it help You > > https://stackoverflow.com/questions/42157384/django-how-to-change-value-of-f

Re: Django LMS

2018-12-11 Thread Suresh
hi Ryan, thank you for your reply. i saw openedx. its huge source code and i cannot understand. i want clearly explain about scorm compliant lms and how to design that lms. if you know please help me thank you On Tuesday, 11 December 2018 21:01:28 UTC+5:30, Ryan Nowakowski wrote: > > Take a loo

Re: function get_form_kwargs() not being called

2018-12-11 Thread Simon A
I identified that a more efficient way of doing this would be to call the get initial method but for some reason it doesn't seem to trigger the function that I'm trying to overriede. *class NoteCreate(CreateView):* *login_url = 'login'* *model = Note* *form_class = NoteForm* *suc

Django self reference (FK) change SQL result

2018-12-11 Thread madjardi
Good day for Everyone. Because I have self-reference, my queryset no work properly I have a model class Agency(Organization): organization_ptr = models.OneToOneField(to='Organization', parent_link=True, primary_key=True, related_name='%(class)s', serialize=False, on_delete=CASCADE) acc

Re: Help with data bound ModelChoiceField

2018-12-11 Thread madjardi
aybe it help You https://stackoverflow.com/questions/42157384/django-how-to-change-value-of-forms-modelchoicefield среда, 12 декабря 2018 г., 0:34:47 UTC+3 пользователь progm...@gmail.com написал: > > Hi, > I'm struggling to set up a data-bound(queryset) ModelChoiceField. Here is > the forms.py

Re: Help with data bound ModelChoiceField

2018-12-11 Thread progmgppers
Thank you for your suggestion: Here is my model, as you will see, I commented out my def and added yours. Unfortunately there was no change. # Customer Information Database class dbCustomer(models.Model): name =models.CharField(max_length=60) contactfn =models.CharField(max_length=25) contactln

Re: Help with data bound ModelChoiceField

2018-12-11 Thread madjardi
Inside dbCustomer среда, 12 декабря 2018 г., 0:50:46 UTC+3 пользователь madjardi написал: > > def __str__(self): >> >return "Custome" + self.id > -- You received this message because you are subscribed to the Google Groups "Django users" group. To unsubscribe from this group and stop

Re: Help with data bound ModelChoiceField

2018-12-11 Thread madjardi
> > def __str__(self): > return "Custome" + self.id -- 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

Django "self" foreign key change SQL query

2018-12-11 Thread madjardi
Good day for Everyone. Because I have self-reference, my queryset no work properly I have a model class Agency(Organization): organization_ptr = models.OneToOneField(to='Organization', parent_link=True, primary_key=True, related_name='%(class)s', serialize=False, on_delete=CASCADE) acc

Re: Adding crop and rotate to django image upload

2018-12-11 Thread 2012 . us
Thanks for the reply Mark! We are looking for a programmer who can do this for us... On Wednesday, October 24, 2018 at 5:33:02 PM UTC-6, mark wrote: > > You could look at this project for ideas on how to accomplish your crop > and rotate actions - https://github.com/matthewwithanm/django-imageki

Re: help

2018-12-11 Thread Harryxon Ndegwa
add a slash after the dailytask ie 'dailytask/' in your url #%£& On Tue, 11 Dec 2018 5:25 pm Tosin Ayoola getting this error when i click on a new link i just added please can > anyone help out below is my codes, views, url > > > ##url > > from django.urls import path > from . import views > > u

Re: Django LMS

2018-12-11 Thread Ryan Nowakowski
Take a look at OpenEDX. It seems like they have a pretty complete e-learning system including some scorm support. https://github.com/edx/edx-platform On December 11, 2018 12:09:32 AM CST, Suresh wrote: >How can i make scorm compliant in my lms site using python with django? > >-- >You receive

Re: Issue with model method

2018-12-11 Thread Yarving Liu
Can you show us the code? On Mon, Dec 10, 2018 at 10:06 PM Felix Lazaro Carbobonell < fe...@epepm.cupet.cu> wrote: > > > Good day to everyone. > > > > I have defined a model method wich is called on a template (DTL) and the > result is None when I test the URI with selenium. Normal attributes fro

Re: Manage static files using Jinja2

2018-12-11 Thread Yarving Liu
The document said you need to create a static root path first, then Django will auto reverse your static file's URL. On Tue, Dec 11, 2018 at 7:03 AM wrote: > I am using the documentation to learn Django. When I started creating > static files, I started to get problems. I am using this: > http

Re: Problems from writing test cases.

2018-12-11 Thread Yarving Liu
I never tried UT like below: class SecondTest(TestCase): @classmethod def setUpTestData(cls): User.objects.create(username = 'janedoe', password = 'nicetobethere456') Thank you the same. On Tue, Dec 11, 2018 at 12:45 PM ANi wrote: > Oh. ok :) > > Then I tried to call again the

Re: help

2018-12-11 Thread Yarving Liu
Please show me the content of personal/urls.py? Need to check content there. On Tue, Dec 11, 2018 at 10:25 PM Tosin Ayoola wrote: > getting this error when i click on a new link i just added please can > anyone help out below is my codes, views, url > > > ##url > > from django.urls import path

Re: Poor Performance for Form Rendering In Django 1.11

2018-12-11 Thread John
Matthew, thanks for the note. Yes I do use fragment caching in places, though it's a bit tougher here because some of these inputs, while simple, are both populated (option sets) and initialized (defaulted) based on the user and the URL. That being said, it's probably still the easiest workaro

Re: Django update one field by DeleteView

2018-12-11 Thread Sidnei Pereira
It's is usally called safe delete or soft delete or even logical delete. There are some approach to that on Django with pros and cons, I suggest you to research a little bit to see whats is best for you. Some material on the subject https://medium.com/@adriennedomingus/soft-deletion-in-django-e

Re: Django UpdateView and Createview

2018-12-11 Thread Sidnei Pereira
Could you point out what exactly was the problem and how did you solve it? A proper feedback is usually useful for those who were helping or those with the same issue. Thanks in advance. Em terça-feira, 11 de dezembro de 2018 10:27:08 UTC-2, Rupam Hazra escreveu: > > Thanks, it is working >

Re: hello i am developing online automated text classification so i need some help soon as possible.

2018-12-11 Thread Mark Phillips
http://www.catb.org/esr/faqs/smart-questions.html On Tue, Dec 11, 2018 at 3:10 AM Waqas Ali wrote: > > -- > 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 dja

Django update one field by DeleteView

2018-12-11 Thread Rupam Hazra
Hi all, I have project model.one functionality is when a project delete only* is_deleted* field modified by 1 so that in reality it does not delete from database just the status changed.That means i want to update the is_deleted field without any form. -- You received this message because

Re: Django UpdateView and Createview

2018-12-11 Thread Rupam Hazra
Thanks, it is working On Monday, 10 December 2018 18:19:34 UTC+5:30, Sidnei Pereira wrote: > > Hi, > > I don't know if I got it right , but you want to add/update as many > instance of Technologies as you want when creating/updating a Project, > right? Like when you use an inline on Django's

Django support SCORM COMPLIANT?

2018-12-11 Thread Suresh
Hi all, Please tell me about scorm compliant in django. How can i make portable for scorm compliant in my django lms. then how can i create django lms. please support me, thank you... -- You received this message because you are subscribed to the Google Groups "Django users" group. To

hello i am developing online automated text classification so i need some help soon as possible.

2018-12-11 Thread Waqas Ali
-- 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. V

Django LMS

2018-12-11 Thread Suresh
How can i make scorm compliant in my lms site using python with django? -- 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