Re: Storing data before committing to data base, wait for approval of admin

2016-05-04 Thread Aaron Cannon
I'd probably just keep a seperate table for all the edits, with a foreign key pointing back to the record to be updated. Seems like the simplest layout to me, unless there's some complicating factor I'm overlooking. It would have a field for each field that edits can be suggested for, a foreign

Storing data before committing to data base, wait for approval of admin

2016-05-04 Thread Mark
I'm building a mobile app using Ionic framework, so the front end is essentially a single page AngularJS app. I'm using Django Rest framework as the backend. In the application, an employee should be able to suggest updates, deletes, or additions to database models. In my schema, there is a

Fixtures won't load twice in same testcase

2016-05-04 Thread Rich Rauenzahn
I'm having a strange problem. My test environment has been working fine, but I am upgrading my environment's Django revision slowly, which means I also need to move away from django-nose's FastFixtureTestCase. I'm now at Django 1.7. I have a TestCase which is more or less... class

Re: Django formset security and injecting PKs in formset hidden id fields

2016-05-04 Thread Tim Graham
How would you keep track of which objects were in the original formset? If you generate the same queryset in the formset for both formset creation and formset submission you shouldn't run into any security issues. On Tuesday, May 3, 2016 at 2:23:12 PM UTC-4, Rob Ladd wrote: > > I've noticed

Re: manipulate n insert field values

2016-05-04 Thread Shameema Mohsin
Thanks Erik. Doing so. -- 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

Re: manipulate n insert field values

2016-05-04 Thread Erik Cederstrand
> Den 4. maj 2016 kl. 10.07 skrev Shameema Mohsin : > > > Z value calculation > > step1: converting lat and long to int > > latitude int = (latitude + 90) × 10^6 > longitude int = (latitude + 180) × 10^6 > > note 10^6 = 100 > > We

Re: manipulate n insert field values

2016-05-04 Thread Shameema Mohsin
Z value calculation step1: converting lat and long to int latitude int = (latitude + 90) × 10^6 longitude int = (latitude + 180) × 10^6 note 10^6 = 100 We compute the Morton value for a spatial point P (x, y) by interleaving the bits of x and y. For