The custom-fields tag has no wiki summary.
8
votes
1answer
2k views
migrating django-model field-name change without losing data
I have a django project with a database table that already contains data. I'd like to change the field name without losing any of the data in that column. My original plan was to simply change the ...
5
votes
2answers
148 views
Custom fields on java enum not getting serialized
I have a Java Enum as shown below:
public enum ExecutionMode {
TYPE_A,
TYPE_B,
TYPE_C;
private ExecutionMode(){} //no args constr- no really required
private boolean incremental; //has ...
5
votes
2answers
321 views
Django end-user defined fields, how to? [duplicate]
Possible Duplicate:
Django dynamic model fields
Good Morning guys!
Scenario is the following. For some models on Django, I would like to allow the end user to define his own fields. It ...
5
votes
2answers
779 views
Django custom field with multiple inheritance
I have two custom Django fields, a JSONField and a CompressedField, both of which work well. I would like to also have a CompressedJSONField, and I was rather hoping I could do this:
class ...
4
votes
3answers
1k views
Wordpress update_post_meta does not update dynamic values
This is a little strange, I am using "update_post_meta" to update the custom fields in Wordpress. When I run update_post_meta($post_id, 'Test_Field', 'Test Value'); the custom field updates without a ...
4
votes
1answer
124 views
Custom fields in Rails that act as a template for future entries
I'm looking for some feedback on my current plan of implementing custom fields in rails. I'm new to rails and app development in general and would appreciate any comments from more experienced ...
4
votes
1answer
556 views
Bulk rewrite post slugs based on custom field value in Wordpress
Basically I have a custom post type setup called "Parts" with over 5,000 posts currently in it. There are a number of custom fields associated with each part, including a "part number". Currently, the ...
4
votes
1answer
184 views
expresso store modifier
I am working on a shop for a florist. The bouquets sometimes come in more than one size. I would like to have the different sizes available in a dropdown menu (i.e. regular = £30, medium = £50, large ...
4
votes
1answer
2k views
Registration plugin custom fields - Always required?
Is there any way using the facebook registration plugin custom fields, to make them NOT required? I have a "Company" and "Address 2" field that I want to make optional, however, they always seem to be ...
3
votes
2answers
6k views
Get value of custom user field in Drupal 7 template?
I'm building my first site with drupal. And I made a custom user field: Full name.
Now I want to get the value of this fild in my template to say “Hello, %username%”.
How do I do that?
3
votes
2answers
320 views
Text is not coming properly with Custom LabelField in Blackberry
I am implementing Custom LabelField in my app. It is working fine with small fonts, when I increase the font size it will not show properly. Here you can see it in this image.
You can see in the ...
3
votes
2answers
119 views
Show custom-field selection - Wordpress
I added a content rating system to my platform where the authors can select which audience their post is appropriate for. Currently, these options are available:
Unrated
G
PG
R
The code that I ...
3
votes
1answer
151 views
Drupal 7, listing users by custom field values
I created a custom field for a user's hometown, let's call it "field_home", that is required for every user when they register an account. They can only select certain text values from a list.
Is ...
3
votes
2answers
404 views
Django & South: Custom field methods are not executed when doing obj.save() in a data migration
In my Django model I have two fields, name (a regular CharField) and slug, a custom field that generates the slug based on a field name passed in the field definition, in this case I use name for ...
3
votes
1answer
135 views
Adding custom fields to a class at runtime, in Ruby with mongoid
In a project came across a requirement wherein a logged in user should be asked specific data based on his company. This specific data would be company specific, and could be mandatory or unique. ...