Re: Prepoplulate admin form with previously entered data

2009-02-09 Thread Adam Woodbeck

Would it be possible to extend the ModelForm for my encounter model,
automatically filling the form when I add a new entry?

On Feb 9, 9:51 pm, Adam Woodbeck <adam.woodb...@gmail.com> wrote:
> I'm building my first Django app and I've run into a roadblock.  I'm
> hoping someone with more knowledge of django 1.0 can point me in the
> right direction.
>
> What the app does is allow me to enter SOAP notes for each of my daily
> patient encounters.  A good amount of the data I enter from visit to
> visit is redundant.  So I'm looking to cut down on the amount of
> typing required each time I add a new patient encounter record through
> the admin interface.  Is there any way to prepopulate a patient's
> encounter in the admin interface using data from the patient's
> previous encounter?
>
> Adam
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups 
"Django users" group.
To post to this group, send email to django-users@googlegroups.com
To unsubscribe from this group, send email to 
django-users+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/django-users?hl=en
-~--~~~~--~~--~--~---



Prepoplulate admin form with previously entered data

2009-02-09 Thread Adam Woodbeck

I'm building my first Django app and I've run into a roadblock.  I'm
hoping someone with more knowledge of django 1.0 can point me in the
right direction.

What the app does is allow me to enter SOAP notes for each of my daily
patient encounters.  A good amount of the data I enter from visit to
visit is redundant.  So I'm looking to cut down on the amount of
typing required each time I add a new patient encounter record through
the admin interface.  Is there any way to prepopulate a patient's
encounter in the admin interface using data from the patient's
previous encounter?

Adam
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups 
"Django users" group.
To post to this group, send email to django-users@googlegroups.com
To unsubscribe from this group, send email to 
django-users+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/django-users?hl=en
-~--~~~~--~~--~--~---



Re: FlatPageSitemap broken?

2008-06-23 Thread Adam Woodbeck

I apologize. The problem is solved.

On Jun 23, 3:09 pm, Adam Woodbeck <[EMAIL PROTECTED]> wrote:
> I'm in the process of setting up a sitemap for our website.  I've
> successfully used GenericSitemap to add our blog posts to the
> sitemap.  However, I'm running into problems getting FlatPageSitemap
> to work correctly.  I keep getting the error, "'Site' object has no
> attribute 'flatpage_set'."
>
> I opened a django shell and created a Site object using the code in
> the FlatPageSitemap class.  A dir() on the Site object showed that it
> truly doesn't have a flatpage_set() attribute.  In fact, I grepped all
> of the django source code and the only place "flatpage_set" is
> referenced is in the FlatPageSitemap class in django/contrib/sitemaps/
> __init__.py.
>
> Am I missing something here or is this a bug?  BTW, I'm using the
> latest django source.
>
> Adam
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups 
"Django users" group.
To post to this group, send email to django-users@googlegroups.com
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/django-users?hl=en
-~--~~~~--~~--~--~---



FlatPageSitemap broken?

2008-06-23 Thread Adam Woodbeck

I'm in the process of setting up a sitemap for our website.  I've
successfully used GenericSitemap to add our blog posts to the
sitemap.  However, I'm running into problems getting FlatPageSitemap
to work correctly.  I keep getting the error, "'Site' object has no
attribute 'flatpage_set'."

I opened a django shell and created a Site object using the code in
the FlatPageSitemap class.  A dir() on the Site object showed that it
truly doesn't have a flatpage_set() attribute.  In fact, I grepped all
of the django source code and the only place "flatpage_set" is
referenced is in the FlatPageSitemap class in django/contrib/sitemaps/
__init__.py.

Am I missing something here or is this a bug?  BTW, I'm using the
latest django source.

Adam

--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups 
"Django users" group.
To post to this group, send email to django-users@googlegroups.com
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/django-users?hl=en
-~--~~~~--~~--~--~---