how to find if a record changed

2011-04-17 Thread Aref
Hello, I have a text field which could be updated regularly and I want to automatically attach a date every time the record is updated--but only if the record is updated. Can this be done in django and how would I go about doing it. Thanks. -- You received this message because you are subscribed

Re: how to find if a record changed

2011-04-17 Thread Aref
rgs, **kwargs): >                 if hasattr(self, 'id') and getattr(self, 'id') is not None: >                         self.updated_at = datetime.now() >                 super(TestModel, self).save(*args, **kwargs) > > On Apr 17, 6:25 pm, Aref wrote: &

Re: how to find if a record changed

2011-04-17 Thread Aref
a record open I get its id and then a copy of the record in the database. I compare to the record as it is in the admin screen. If they are the same I do not append the date (there is certainly a more elegant way of appending the date than what I have here) and if not no date is appended. This works

WxPython and django

2011-03-30 Thread Aref
Hello, I have created a small app with wxpython to manage and query databases and now I am learning django and was wondering if it is possible to incorporate some of the wxpython code in django. What I am trying to do is to create the same app as the one in wxpython but make it web- based rather t

Re: WxPython and django

2011-03-31 Thread Aref
That's what I am looking for. Using wxpython to render some pages (templates) especially formatting data from the database. Is there some code snippets I can look at or maybe a tutorial to help me figure out how to do this? thanks On Mar 30, 11:28 pm, Kenneth Gonsalves wrote: > On Wed, 2011-03-30

Re: WxPython and django

2011-03-31 Thread Aref
mework for producing and > > delivering HTML/CSS/JS web content to a browser. > > > On Wed, Mar 30, 2011 at 10:03 PM, Aref wrote: > > > Hello, > > > > I have created a small app with wxpython to manage and query databases > > > and now I am learning

Re: WxPython and django

2011-03-31 Thread Aref
mework for producing and > > delivering HTML/CSS/JS web content to a browser. > > > On Wed, Mar 30, 2011 at 10:03 PM, Aref wrote: > > > Hello, > > > > I have created a small app with wxpython to manage and query databases > > > and now I am learning

Re: WxPython and django

2011-04-01 Thread Aref
Thank you Mike. This is what I was looking for before wasting time going down a dead-end road. On Mar 31, 8:28 pm, Mike Ramirez wrote: > On Thursday, March 31, 2011 06:34:42 pm Aref Nammari wrote: > > > Hi Calvin,  I think that there is some misunderstanding about what my > >

populating a field based on selection of foreign key

2011-04-09 Thread Aref
I am working on a database project and I am facing a little challenge. Here it is. I have three tables defined as below: class Generation(models.Model): generation = models.CharField(max_length = 25) def __unicode__(self): return self.generation class CogE(models.Model): fir

populating a field based on selection of foreign key

2011-04-09 Thread Aref
I am working on a database project and I am facing a little challenge. Here it is. I have three tables defined as below: class Generation(models.Model): generation = models.CharField(max_length = 25) def __unicode__(self): return self.generation class CogE(models.Model): fir

Re: populating a field based on selection of foreign key

2011-04-10 Thread Aref
ring = ["-cog_E"] >     search_fields = ("system") >     list_filter = ("generation") >     list_per_page = 10 > > admin.site.register(System, SystemAdmin) > > Try this. =) > > 2011/4/9 Aref > > > I am working on a database project and

attachments

2017-01-03 Thread Aref
I have downloaded the django-attachments app from GitHub. I followed the instructions for installation and usage but can't seem to make things work. Has anyone used this app and if so could you provide some example / snippets as how to get the app to work with another app in the project. What I

Electronic Notebook (ELN)

2015-09-02 Thread Aref
I am looking for an electronic notebook for general engineering notes. It seems that this would be a good candidate application for Django. Does anyone know if such an application has been written using Django or how difficult such an application would be to write? Thanks. Aref -- You

Re: Electronic Notebook (ELN)

2015-09-03 Thread Aref
Sep 02, 2015 at 07:39:14PM -0700, Aref wrote: > > I am looking for an electronic notebook for general engineering notes. > It > > seems that this would be a good candidate application for Django. Does > > > You might want to take a look at Evernote. Been using that app

Re: WxPython and django

2011-03-31 Thread Aref Nammari
Calvin, The database as well as the django app sits on a server (internal--this is not meant for public access by the general public). To access the app users would have to login to the server through http and run the app from there. On 3/31/11, Calvin Spealman wrote: > Aref, > > The q

Re: WxPython and django

2011-03-31 Thread Aref Nammari
he user interact with it? > > On Thu, Mar 31, 2011 at 9:04 AM, Aref Nammari > wrote: > > Calvin, > > > > The database as well as the django app sits on a server > > (internal--this is not meant for public access by the general public). > > To access the app users wou